mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
Update Task_Capture_Dispatcher.lua
Last annoying flash gordon
This commit is contained in:
parent
bf61f22dd1
commit
7ddec7609a
@ -83,7 +83,7 @@ do -- TASK_CAPTURE_DISPATCHER
|
|||||||
-- ## 1.1. Create a command center.
|
-- ## 1.1. Create a command center.
|
||||||
--
|
--
|
||||||
-- First you need to create a command center using the @{Tasking.CommandCenter#COMMANDCENTER.New}() constructor.
|
-- First you need to create a command center using the @{Tasking.CommandCenter#COMMANDCENTER.New}() constructor.
|
||||||
-- The command assumes that you´ve setup a group in the mission editor with the name HQ.
|
-- The command assumes that you´ve setup a group in the mission editor with the name HQ.
|
||||||
-- This group will act as the command center object.
|
-- This group will act as the command center object.
|
||||||
-- It is a good practice to mark this group as invisible and invulnerable.
|
-- It is a good practice to mark this group as invisible and invulnerable.
|
||||||
--
|
--
|
||||||
@ -184,6 +184,7 @@ do -- TASK_CAPTURE_DISPATCHER
|
|||||||
local self = BASE:Inherit( self, TASK_MANAGER:New( SetGroup ) ) -- #TASK_CAPTURE_DISPATCHER
|
local self = BASE:Inherit( self, TASK_MANAGER:New( SetGroup ) ) -- #TASK_CAPTURE_DISPATCHER
|
||||||
|
|
||||||
self.Mission = Mission
|
self.Mission = Mission
|
||||||
|
self.FlashNewTask = false
|
||||||
|
|
||||||
self:AddTransition( "Started", "Assign", "Started" )
|
self:AddTransition( "Started", "Assign", "Started" )
|
||||||
self:AddTransition( "Started", "ZoneCaptured", "Started" )
|
self:AddTransition( "Started", "ZoneCaptured", "Started" )
|
||||||
@ -383,7 +384,7 @@ do -- TASK_CAPTURE_DISPATCHER
|
|||||||
local TaskText = TaskReport:Text(", ")
|
local TaskText = TaskReport:Text(", ")
|
||||||
|
|
||||||
for TaskGroupID, TaskGroup in pairs( self.SetGroup:GetSet() ) do
|
for TaskGroupID, TaskGroup in pairs( self.SetGroup:GetSet() ) do
|
||||||
if ( not Mission:IsGroupAssigned(TaskGroup) ) and TaskText ~= "" then
|
if ( not Mission:IsGroupAssigned(TaskGroup) ) and TaskText ~= "" and ( not self.FlashNewTask ) then
|
||||||
Mission:GetCommandCenter():MessageToGroup( string.format( "%s has tasks %s. Subscribe to a task using the radio menu.", Mission:GetShortText(), TaskText ), TaskGroup )
|
Mission:GetCommandCenter():MessageToGroup( string.format( "%s has tasks %s. Subscribe to a task using the radio menu.", Mission:GetShortText(), TaskText ), TaskGroup )
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user