mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
OPS
** ARMYGROUP** - Added suppression option **COMMANDER** - Added function to add targets with defined resources **OPSGROUP** - Added option to pause multiple missions **INTEL** - Fixed bug in cluster calc **LEGION** - Added function to get alive opsgroups **TARGET** * Added start condition
This commit is contained in:
@@ -955,6 +955,7 @@ end
|
||||
function CHIEF:AddTarget(Target)
|
||||
|
||||
if not self:IsTarget(Target) then
|
||||
Target.chief=self
|
||||
table.insert(self.targetqueue, Target)
|
||||
end
|
||||
|
||||
@@ -1536,7 +1537,7 @@ function CHIEF:onafterStatus(From, Event, To)
|
||||
for _,_target in pairs(self.targetqueue) do
|
||||
local target=_target --Ops.Target#TARGET
|
||||
|
||||
if target and target:IsAlive() and target.mission and target.mission:IsNotOver() then
|
||||
if target and target:IsAlive() and target.chief and target.mission and target.mission:IsNotOver() then
|
||||
|
||||
local inborder=self:CheckTargetInZones(target, self.borderzoneset)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user