* Try more than once to get coord in status loop
This commit is contained in:
Applevangelist 2023-09-10 15:41:54 +02:00
parent 31fb9bc169
commit ba361e7eff

View File

@ -3491,8 +3491,11 @@ function RAT:Status(message, forID)
local life=self:_GetLife(group)
local fuel=group:GetFuel()*100.0
local airborne=group:InAir()
local coords=group:GetCoordinate()
local alt=coords.y or 1000
local coords=group:GetCoordinate() or group:GetVec3()
local alt=1000
if coords then
alt=coords.y or 1000
end
--local vel=group:GetVelocityKMH()
local departure=ratcraft.departure:GetName()
local destination=ratcraft.destination:GetName()