Merge remote-tracking branch 'origin/master' into develop

# Conflicts:
#	Moose Development/Moose/Wrapper/Group.lua
This commit is contained in:
Applevangelist 2024-09-08 11:44:44 +02:00
commit 0c3f97370c
3 changed files with 17 additions and 3 deletions

View File

@ -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

View File

@ -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()

View File

@ -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