Jump to content
Sign in to follow this  
bennettonn

Help in a script

Recommended Posts

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

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
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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×