Navigation

This commit is contained in:
Frank
2023-11-06 21:35:20 +01:00
parent befc8207f5
commit a5232f49c0
3 changed files with 382 additions and 486 deletions

View File

@@ -1743,6 +1743,8 @@ function FLIGHTGROUP:OnEventLanding(EventData)
if element then
self:T3(self.lid..string.format("EVENT: Element %s landed at %s ==> landed", element.name, airbasename))
self:ElementLanded(element, airbase)
else
self:T3(self.lid.."EVENT: Could not get element in landing event")
end
end
@@ -3722,6 +3724,8 @@ function FLIGHTGROUP:_SetFlightPlan(FlightPlan)
local wp=self:AddWaypoint(fix.vector, speed, nil, altitude or 10000, false)
wp.flightplan=FlightPlan
wp.name=fix.name
end