mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
xxx
This commit is contained in:
parent
f3be326b5e
commit
232547a0fb
@ -181,7 +181,7 @@ do -- SET_BASE
|
||||
return false
|
||||
end
|
||||
end
|
||||
-- No condition was true.
|
||||
-- No condition was false.
|
||||
return true
|
||||
end
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user