braincrush Posted January 24, 2015 Share Posted January 24, 2015 Is there a way to spawn units that are not pre placed on the map ? what i want to achieve, is a training mission with ground targets re-spawning indefinitely. Link to comment Share on other sites More sharing options...
ED Team BIGNEWY Posted January 24, 2015 ED Team Share Posted January 24, 2015 Hi and welcome to the forums, the first place to look is here http://forums.eagle.ru/showthread.php?t=98616 Take some time to read through and learn MIST it is great for mission builders http://wiki.hoggit.us/view/Mission_Scripting_Tools_Documentation Forum rules - DCS Crashing? Try this first - Cleanup and Repair - Discord BIGNEWY#8703 - Youtube - Patch Status Windows 11, NVIDIA MSI RTX 3090, Intel® i9-10900K 3.70GHz, 5.30GHz Turbo, Corsair Hydro Series H150i Pro, 64GB DDR @3200, ASUS ROG Strix Z490-F Gaming, HP Reverb G2 Link to comment Share on other sites More sharing options...
braincrush Posted January 24, 2015 Author Share Posted January 24, 2015 Fantastic, thank you ! Let the learning begin ;) Link to comment Share on other sites More sharing options...
braincrush Posted January 24, 2015 Author Share Posted January 24, 2015 [quote=BIGNEWY;2300843 Take some time to read through and learn MIST it is great for mission builders II believe I've found the function i was looking for, however i can't get it to work, i did a message as a second action and it is displayed so i presume the script is executed, but without any results. the function is "if not Group.getByName('groupName') then mist.respawnGroup('groupName', true) end" any ideas what might go wrong ? i did of course loaded mist at the beginning of the mission. Link to comment Share on other sites More sharing options...
wolf5 Posted January 24, 2015 Share Posted January 24, 2015 I think that you group need to exist before the respawn People fly planes, pilots fly helicopters Link to comment Share on other sites More sharing options...
braincrush Posted January 24, 2015 Author Share Posted January 24, 2015 (edited) I think that you group need to exist before the respawn it did, ive triggered the script "on goup destroyed" so after the group is gone the script was supposed to confirm it and re spawn the it, or so i thought :) Edited January 24, 2015 by braincrush Link to comment Share on other sites More sharing options...
wolf5 Posted January 24, 2015 Share Posted January 24, 2015 I did it like this : Trigger: ONCE (or switched condition for endless respawn ) Condition: Lua predicate "if not Group.getByName('Tanker2') then return true end" Actions: Do script "mist.respawnGroup ('Tanker2',true)" People fly planes, pilots fly helicopters Link to comment Share on other sites More sharing options...
calibro8185 Posted January 24, 2015 Share Posted January 24, 2015 Deactivating the group works for me. Make it the first action, then make the second action to run the script. Link to comment Share on other sites More sharing options...
braincrush Posted January 25, 2015 Author Share Posted January 25, 2015 thanks gents, after trying everything I've noticed i was using mist1.1... after replacing it with 3.3 the trigger i did it the first time started working :)_ thanks again for all the help ! Link to comment Share on other sites More sharing options...
Recommended Posts