Update Unit.lua

This commit is contained in:
Applevangelist 2022-07-31 09:16:46 +02:00 committed by GitHub
parent f94944c41a
commit 08e429210a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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