mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Merge remote-tracking branch 'origin/master' into develop
# Conflicts: # Moose Development/Moose/Wrapper/Group.lua
This commit is contained in:
commit
0c3f97370c
@ -181,7 +181,7 @@ do -- SET_BASE
|
|||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
-- No condition was true.
|
-- No condition was false.
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -2374,7 +2374,7 @@ function CSAR:onafterStart(From, Event, To)
|
|||||||
self:HandleEvent(EVENTS.PilotDead, self._EventHandler)
|
self:HandleEvent(EVENTS.PilotDead, self._EventHandler)
|
||||||
|
|
||||||
if self.UserSetGroup then
|
if self.UserSetGroup then
|
||||||
self.PilotGroups = self.UserSetGroup
|
self.allheligroupset = self.UserSetGroup
|
||||||
elseif self.allowbronco then
|
elseif self.allowbronco then
|
||||||
local prefixes = self.csarPrefix or {}
|
local prefixes = self.csarPrefix or {}
|
||||||
self.allheligroupset = SET_GROUP:New():FilterCoalitions(self.coalitiontxt):FilterPrefixes(prefixes):FilterStart()
|
self.allheligroupset = SET_GROUP:New():FilterCoalitions(self.coalitiontxt):FilterPrefixes(prefixes):FilterStart()
|
||||||
|
|||||||
@ -367,7 +367,7 @@ function GROUP:GetDCSObject()
|
|||||||
return DCSGroup
|
return DCSGroup
|
||||||
end
|
end
|
||||||
|
|
||||||
self:E(string.format("ERROR: Could not get DCS group object of group %s because DCS object could not be found!", tostring(self.GroupName)))
|
--self:T2(string.format("ERROR: Could not get DCS group object of group %s because DCS object could not be found!", tostring(self.GroupName)))
|
||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -1010,6 +1010,20 @@ function GROUP:Activate(delay)
|
|||||||
return self
|
return self
|
||||||
end
|
end
|
||||||
|
|
||||||
|
--- Deactivates an activated GROUP.
|
||||||
|
-- @param #GROUP self
|
||||||
|
-- @param #number delay Delay in seconds, before the group is activated.
|
||||||
|
-- @return #GROUP self
|
||||||
|
function GROUP:Deactivate(delay)
|
||||||
|
--self:F2( { self.GroupName } )
|
||||||
|
if delay and delay>0 then
|
||||||
|
self:ScheduleOnce(delay, GROUP.Deactivate, self)
|
||||||
|
else
|
||||||
|
trigger.action.deactivateGroup( self:GetDCSObject() )
|
||||||
|
end
|
||||||
|
return self
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
--- Gets the type name of the group.
|
--- Gets the type name of the group.
|
||||||
-- @param #GROUP self
|
-- @param #GROUP self
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user