Merge pull request #1508 from FlightControl-Master/Applevangelist-patch-2

Update Group.lua
This commit is contained in:
Applevangelist 2021-04-20 17:31:00 +02:00 committed by GitHub
commit 0fc91595b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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