mirror of
https://github.com/akaAgar/the-universal-mission-for-dcs-world.git
synced 2025-11-25 19:31:01 +00:00
Created TUM.supportWingmen table
This commit is contained in:
24
Script/The Universal Mission/SupportWingmen.lua
Normal file
24
Script/The Universal Mission/SupportWingmen.lua
Normal 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
|
||||
Reference in New Issue
Block a user