Jump to content

Recommended Posts

Posted

I'm making good use of the group.destroy function,

 

but I'm wondering if there's a way to remove all of one coalition for ease of testing purposes?

"Through The Inferno" - Endless, Dynamic, Open-World Experience for DCS World
Website | Discord | Support TTI on Patreon

 
Posted

You could loop through all of the coalition's groups and destroy them:

 

(example to destroy all RED groups)

local groups = coalition.getGroups(coalition.side.RED)
for _, group in pairs(groups) do
   group:destroy()
end

Posted
You could loop through all of the coalition's groups and destroy them:

 

(example to destroy all RED groups)

local groups = coalition.getGroups(coalition.side.RED)
for _, group in pairs(groups) do
   group:destroy()
end

 

 

Great, this worked perfectly. Dedicated server needed this badly.

 

Thanks!

"Through The Inferno" - Endless, Dynamic, Open-World Experience for DCS World
Website | Discord | Support TTI on Patreon

 
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...