mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
xx
This commit is contained in:
parent
869339150a
commit
5c1d367926
@ -2264,11 +2264,11 @@ function AWACS:_StartEscorts(Shiftchange)
|
|||||||
self.CatchAllMissions[#self.CatchAllMissions+1] = escort
|
self.CatchAllMissions[#self.CatchAllMissions+1] = escort
|
||||||
|
|
||||||
if Shiftchange then
|
if Shiftchange then
|
||||||
self.EscortMissionReplacement[1] = escort
|
self.EscortMissionReplacement[i] = escort
|
||||||
else
|
else
|
||||||
self.EscortMission[1] = escort
|
self.EscortMission[i] = escort
|
||||||
|
end
|
||||||
end
|
end
|
||||||
--end
|
|
||||||
|
|
||||||
return self
|
return self
|
||||||
end
|
end
|
||||||
|
|||||||
@ -700,6 +700,15 @@ function PLAYERTASK:IsDone()
|
|||||||
return IsDone
|
return IsDone
|
||||||
end
|
end
|
||||||
|
|
||||||
|
--- [User] Check if task is NOT done
|
||||||
|
-- @param #PLAYERTASK self
|
||||||
|
-- @return #boolean done
|
||||||
|
function PLAYERTASK:IsNotDone()
|
||||||
|
self:T(self.lid.."IsNotDone?")
|
||||||
|
local IsNotDone = not self:IsDone()
|
||||||
|
return IsNotDone
|
||||||
|
end
|
||||||
|
|
||||||
--- [User] Check if PLAYERTASK has clients assigned to it.
|
--- [User] Check if PLAYERTASK has clients assigned to it.
|
||||||
-- @param #PLAYERTASK self
|
-- @param #PLAYERTASK self
|
||||||
-- @return #boolean hasclients
|
-- @return #boolean hasclients
|
||||||
@ -1156,7 +1165,7 @@ function PLAYERTASK:onafterCancel(From, Event, To)
|
|||||||
self.TaskController:__TaskCancelled(-1,self)
|
self.TaskController:__TaskCancelled(-1,self)
|
||||||
end
|
end
|
||||||
self.timestamp = timer.getAbsTime()
|
self.timestamp = timer.getAbsTime()
|
||||||
self.FinalState = "Cancel"
|
self.FinalState = "Cancelled"
|
||||||
self:__Done(-1)
|
self:__Done(-1)
|
||||||
return self
|
return self
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user