mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
OPS
AUFTRAG - Added mission task param for RECON, PATROLZONE and TROOPTRANSPORT FLIGHTGROUP - Fixed CheckGroupDone if group is engaging and has a paused mission TARGET - Added GetThreatLevelMax functions CHIEF - Added :AddGciCapZone() function
This commit is contained in:
@@ -2112,19 +2112,19 @@ function FLIGHTGROUP:_CheckGroupDone(delay, waittime)
|
||||
-- Debug info.
|
||||
self:T(self.lid..string.format("Check FLIGHTGROUP [state=%s] done? (t=%.4f)", fsmstate, timer.getTime()))
|
||||
|
||||
-- First check if there is a paused mission that
|
||||
if self.missionpaused then
|
||||
self:T(self.lid..string.format("Found paused mission %s [%s]. Unpausing mission...", self.missionpaused.name, self.missionpaused.type))
|
||||
self:UnpauseMission()
|
||||
return
|
||||
end
|
||||
|
||||
-- Group is currently engaging.
|
||||
if self:IsEngaging() then
|
||||
self:T(self.lid.."Engaging! Group NOT done...")
|
||||
return
|
||||
end
|
||||
|
||||
-- First check if there is a paused mission.
|
||||
if self.missionpaused then
|
||||
self:T(self.lid..string.format("Found paused mission %s [%s]. Unpausing mission...", self.missionpaused.name, self.missionpaused.type))
|
||||
self:UnpauseMission()
|
||||
return
|
||||
end
|
||||
|
||||
-- Group is ordered to land at an airbase.
|
||||
if self.isLandingAtAirbase then
|
||||
self:T(self.lid..string.format("Landing at airbase %s! Group NOT done...", self.isLandingAtAirbase:GetName()))
|
||||
|
||||
Reference in New Issue
Block a user