Jump to content

remove all RED or BLUE coalition action?


deadlyfishes

Recommended Posts

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

  • Recently Browsing   0 members

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