mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Fixed DETECTION_DISPATCHER (I think)..
-- Need to test this in a group. -- Revised messages adding @ signs, which represent to who the message is targetted.
This commit is contained in:
@@ -439,7 +439,8 @@ function TASK:MessageToGroups( Message )
|
||||
local CC = Mission:GetCommandCenter()
|
||||
|
||||
for TaskGroupName, TaskGroup in pairs( self.SetGroup:GetSet() ) do
|
||||
CC:MessageToGroup( Message, TaskGroup )
|
||||
local TaskGroup = TaskGroup -- Wrapper.Group#GROUP
|
||||
CC:MessageToGroup( Message, TaskGroup, TaskGroup:GetName() )
|
||||
end
|
||||
end
|
||||
|
||||
@@ -872,7 +873,7 @@ function TASK:onenterAssigned( Event, From, To )
|
||||
|
||||
self:E("Task Assigned")
|
||||
|
||||
self:MessageToGroups( "Task " .. self:GetName() .. " has been assigned!" )
|
||||
self:MessageToGroups( "Task " .. self:GetName() .. " has been assigned to your group." )
|
||||
self:GetMission():__Start()
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user