deadlyfishes Posted March 17, 2017 Posted March 17, 2017 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 SP Missions: Caucasus | NTTR | Syria | Afghanistan | Iraq | Mariana Islands | Persian Gulf Normandy | South Atlantic | Sinai | Kola | Cold War Germany MP Servers: PvE Server TTI x Pimax - Get discounts on Pimax Headsets
Chump Posted March 17, 2017 Posted March 17, 2017 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
deadlyfishes Posted March 17, 2017 Author Posted March 17, 2017 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 SP Missions: Caucasus | NTTR | Syria | Afghanistan | Iraq | Mariana Islands | Persian Gulf Normandy | South Atlantic | Sinai | Kola | Cold War Germany MP Servers: PvE Server TTI x Pimax - Get discounts on Pimax Headsets
Recommended Posts