mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
GROUP - overwrite GetHeight() inherited from POSITIONABLE with something that is actually working for groups
This commit is contained in:
parent
e08fb2e972
commit
e0397dff47
@ -797,11 +797,19 @@ function GROUP:GetVelocityVec3()
|
|||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
--- Returns the average group altitude in meters.
|
||||||
|
-- @param Wrapper.Group#GROUP self
|
||||||
|
-- @param #boolean FromGround Measure from the ground or from sea level (ASL). Provide **true** for measuring from the ground (AGL). **false** or **nil** if you measure from sea level.
|
||||||
|
-- @return #number The altitude of the group or nil if is not existing or alive.
|
||||||
|
function GROUP:GetAltitude(FromGround)
|
||||||
|
self:F2( self.GroupName )
|
||||||
|
return self:GetHeight(FromGround)
|
||||||
|
end
|
||||||
|
|
||||||
--- Returns the average group height in meters.
|
--- Returns the average group height in meters.
|
||||||
-- @param Wrapper.Group#GROUP self
|
-- @param Wrapper.Group#GROUP self
|
||||||
-- @param #boolean FromGround Measure from the ground or from sea level. Provide **true** for measuring from the ground. **false** or **nil** if you measure from sea level.
|
-- @param #boolean FromGround Measure from the ground or from sea level (ASL). Provide **true** for measuring from the ground (AGL). **false** or **nil** if you measure from sea level.
|
||||||
-- @return DCS#Vec3 The height of the group or nil if is not existing or alive.
|
-- @return #number The height of the group or nil if is not existing or alive.
|
||||||
function GROUP:GetHeight( FromGround )
|
function GROUP:GetHeight( FromGround )
|
||||||
self:F2( self.GroupName )
|
self:F2( self.GroupName )
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user