mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Fixing AI_CARGO_HELICOPTER to interprete the real height correctly and also allow for pickup when the helo is still speeding more than 7 km/h.
This commit is contained in:
@@ -543,7 +543,7 @@ function GROUP:GetHeight( FromGround )
|
||||
local GroupPosition = DCSUnit:getPosition()
|
||||
|
||||
if FromGround == true then
|
||||
local LandHeight = land.getHeight( { GroupPosition.p.x, GroupPosition.p.z } )
|
||||
local LandHeight = land.getHeight( { x = GroupPosition.p.x, y = GroupPosition.p.z } )
|
||||
GroupHeight = GroupHeight + ( GroupPosition.p.y - LandHeight )
|
||||
else
|
||||
GroupHeight = GroupHeight + GroupPosition.p.y
|
||||
|
||||
Reference in New Issue
Block a user