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:
FlightControl_Master
2018-05-28 06:12:48 +02:00
parent 4c5d5a32dc
commit 0553e4b14e
4 changed files with 5 additions and 15 deletions

View File

@@ -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