mirror of
https://github.com/akaAgar/the-universal-mission-for-dcs-world.git
synced 2026-08-20 17:07:15 +00:00
25 lines
859 B
Lua
25 lines
859 B
Lua
-- ====================================================================================
|
|
-- TUM.SUPPORTWINGMEN - HANDLES THE PLAYER'S WINGMEN
|
|
-- ====================================================================================
|
|
-- ====================================================================================
|
|
|
|
TUM.supportWingmen = {}
|
|
|
|
do
|
|
local wingmenGroupID = nil
|
|
|
|
function TUM.supportWingmen.create()
|
|
if TUM.settings.getValue(TUM.settings.id.MULTIPLAYER) then return end -- No wingmen in multiplayer
|
|
TUM.supportWingmen.removeAll() -- Destroy all pre-existing wingmen
|
|
TUM.log("Creating wingmen...")
|
|
end
|
|
|
|
function TUM.supportWingmen.removeAll()
|
|
if wingmenGroupID then TUM.log("Removing all wingmen...") end
|
|
|
|
DCSEx.world.destroyGroupByID(wingmenGroupID)
|
|
|
|
wingmenGroupID = nil
|
|
end
|
|
end
|