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