mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
xxx
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -367,7 +367,7 @@ function GROUP:GetDCSObject()
|
|||||||
return DCSGroup
|
return DCSGroup
|
||||||
end
|
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
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user