Update Group.lua

This commit is contained in:
Applevangelist 2021-04-20 17:27:48 +02:00 committed by GitHub
parent 869b819a4f
commit 18fca6461b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2551,6 +2551,23 @@ do -- Players
end 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 --do -- Smoke
-- --
----- Signal a flare at the position of the GROUP. ----- Signal a flare at the position of the GROUP.