This commit is contained in:
Applevangelist 2024-09-08 11:44:59 +02:00
parent f3be326b5e
commit 232547a0fb
2 changed files with 16 additions and 2 deletions

View File

@ -181,7 +181,7 @@ do -- SET_BASE
return false
end
end
-- No condition was true.
-- No condition was false.
return true
end

View File

@ -367,7 +367,7 @@ function GROUP:GetDCSObject()
return DCSGroup
end
self:T2(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
end
@ -1010,6 +1010,20 @@ function GROUP:Activate(delay)
return self
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.
-- @param #GROUP self