Update Group.lua (#1546)

Added invisible and immortal commands on GROUP level.
This commit is contained in:
Applevangelist 2021-06-10 11:20:01 +02:00 committed by GitHub
parent 858b00336b
commit 832d6b1c08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2570,6 +2570,30 @@ function GROUP:EnableEmission(switch)
return self
end
--- Switch on/off invisible flag for the group.
-- @param #GROUP self
-- @param #boolean switch If true, emission is enabled. If false, emission is disabled.
-- @return #GROUP self
function GROUP:SetCommandInvisible(switch)
self:F2( self.GroupName )
local switch = switch or false
local SetInvisible = {id = 'SetInvisible', params = {value = true}}
self:SetCommand(SetInvisible)
return self
end
--- Switch on/off immortal flag for the group.
-- @param #GROUP self
-- @param #boolean switch If true, emission is enabled. If false, emission is disabled.
-- @return #GROUP self
function GROUP:SetCommandImmortal(switch)
self:F2( self.GroupName )
local switch = switch or false
local SetInvisible = {id = 'SetImmortal', params = {value = true}}
self:SetCommand(SetInvisible)
return self
end
--do -- Smoke
--
----- Signal a flare at the position of the GROUP.