Update Group.lua

Add EnableEmissions
This commit is contained in:
Applevangelist
2021-04-20 11:36:59 +02:00
committed by GitHub
parent 2f7b7eeddd
commit 2531a25c9e

View File

@@ -2551,6 +2551,23 @@ do -- Players
end
--- GROUND - Switch on/off radar emissions
-- @param #GROUP self
-- @param #boolean switch
function GROUP:EnableEmission(switch)
self:F2( self.GroupName )
local switch = switch or false
local DCSUnit = self:GetDCSObject()
if DCSUnit then
DCSUnit:enableEmission(switch)
end
end
--do -- Smoke
--
----- Signal a flare at the position of the GROUP.
@@ -2641,4 +2658,4 @@ end
--
--
--
--end
--end