mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Update Unit.lua
This commit is contained in:
parent
f94944c41a
commit
08e429210a
@ -189,7 +189,7 @@ function UNIT:GetAltitude(FromGround)
|
||||
|
||||
if DCSUnit then
|
||||
local altitude = 0
|
||||
local point = DCSUnit.getPoint() --DCS#Vec3
|
||||
local point = DCSUnit:getPoint() --DCS#Vec3
|
||||
altitude = point.y
|
||||
if FromGround then
|
||||
local land = land.getHeight( { x = point.x, y = point.z } ) or 0
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user