Created TUM.supportWingmen table

This commit is contained in:
Ambroise Garel
2025-07-23 11:30:30 +02:00
parent 693a280555
commit f438c73f5a
2 changed files with 26 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
-- ====================================================================================
-- 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