InitialAltitude is now part of CenterPositition in Lua, too
followup of #4371
This commit is contained in:
@@ -15,7 +15,7 @@ end
|
||||
Rules.InitialAltitude = function(actorType)
|
||||
local ai = Rules.TraitInfoOrDefault(actorType, "AircraftInfo")
|
||||
if ai ~= nil then
|
||||
return ai.CruiseAltitude
|
||||
return ai.CruiseAltitude.Range
|
||||
end
|
||||
return 0
|
||||
end
|
||||
Reference in New Issue
Block a user