bennettonn 10 Posted May 29, 2015 I was creating a mission in which it is necessary to execute a script in the initialization area of the unit, here is the code null = [this] execVM "script.sqf"; and works well however this script has a loop, I wonder how I do to stop the script to run when I want to stop Share this post Link to post Share on other sites
squeeze 22 Posted May 29, 2015 start with exitwith bookmark this page Share this post Link to post Share on other sites
jshock 513 Posted May 29, 2015 Where you have "null" put a unique name there, and when you want to stop the script terminate yourVariableName; Share this post Link to post Share on other sites
bennettonn 10 Posted May 29, 2015 Where you have "null" put a unique name there, and when you want to stop the script terminate yourVariableName; this will work if the script is running in init of a unit? Share this post Link to post Share on other sites