Update FlightGroup.lua

-No despawn after player landed.
This commit is contained in:
Frank 2022-05-08 00:29:36 +02:00
parent 313f99d09d
commit b6e806adbc

View File

@ -1809,6 +1809,11 @@ function FLIGHTGROUP:onafterArrived(From, Event, To)
self.flightcontrol:SetFlightStatus(self, FLIGHTCONTROL.FlightStatus.ARRIVED)
end
if not self.isAI then
-- Player landed. No despawn.
return
end
--TODO: Check that current base is airwing base.
local airwing=self:GetAirWing() --airwing:GetAirbaseName()==self.currbase:GetName()