PhoenixTunes Posted April 5, 2018 Share Posted April 5, 2018 Hello everyone! I'm trying to build a training range with a few tanks and unammned trucks, and i'm trying to create a script using MIST that will respawn them once they've all been destroyed. I've used the "MISSION START" trigger to load MIST. I've then created the following trigger that unfortunately doesn't seem to work :huh: CONTINUOUS ACTION > GROUP DEAD ("TANKS") > DO SCRIPT: if not Group.getByName('Tanks') then mist.respawnGroup('Tanks', true) end Any help is greatly appreciated :thumbup: Link to comment Share on other sites More sharing options...
Grimes Posted April 6, 2018 Share Posted April 6, 2018 Group.getByName() returns the object even if it is dead. So you can check how many units are alive. if Group.getByName('Tanks') and #Group.getByName('Tanks'):getUnits() < 1 then respawn group Also the group dead condition might also need to be changed to a lua predicate. It used to work how you have it, but unfortunately I believe it only works the first time. lua predicate: if Group.getByName('Tanks') and #Group.getByName('Tanks'):getUnits() < 1 then return true end The right man in the wrong place makes all the difference in the world. Current Projects: Grayflag Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum Link to comment Share on other sites More sharing options...
Johnny_Rico Posted April 7, 2018 Share Posted April 7, 2018 when i used to use MIST and respawn stuff I would use switched condition trigger group (EASY#001) group dead then for action mist.respawnInZone('EASY#001', 'spawn_zone1', True, 700) METAR weather for DCS World missions Guide to help out new DCS MOOSE Users -> HERE Havoc Company Dedicated server info Connect IP: 94.23.215.203 SRS enabled - freqs - Main = 243, A2A = 244, A2G = 245 Please contact me HERE if you have any server feedback or METAR issues/requests Link to comment Share on other sites More sharing options...
Recommended Posts