mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Update FlightGroup.lua
-No despawn after player landed.
This commit is contained in:
parent
313f99d09d
commit
b6e806adbc
@ -1809,6 +1809,11 @@ function FLIGHTGROUP:onafterArrived(From, Event, To)
|
|||||||
self.flightcontrol:SetFlightStatus(self, FLIGHTCONTROL.FlightStatus.ARRIVED)
|
self.flightcontrol:SetFlightStatus(self, FLIGHTCONTROL.FlightStatus.ARRIVED)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if not self.isAI then
|
||||||
|
-- Player landed. No despawn.
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
--TODO: Check that current base is airwing base.
|
--TODO: Check that current base is airwing base.
|
||||||
local airwing=self:GetAirWing() --airwing:GetAirbaseName()==self.currbase:GetName()
|
local airwing=self:GetAirWing() --airwing:GetAirbaseName()==self.currbase:GetName()
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user