alleycat 28 Posted November 8, 2013 If I run 2 scripts like this execVM "script1.sqf"; execVM "script2.sqf"; ...and there is a sleep delay in script 1, will this delay script2? Or does execVM just start script1, then immediately start the next line? Share this post Link to post Share on other sites
Kunsa 10 Posted November 8, 2013 immediately onto the next line. it doesnt wait for the script to finish. _handle = player execVM "test.sqf"; waitUntil {scriptDone _Handle}; _handle = player execVM "test2.sqf"; this will ensure that test is run before test2 Share this post Link to post Share on other sites
cuel 25 Posted November 9, 2013 immediately onto the next line. it doesnt wait for the script to finish. _handle = player execVM "test.sqf"; waitUntil {scriptDone _Handle}; _handle = player execVM "test2.sqf"; this will ensure that test is run before test2 or [] call compile preProcessFileLineNumbers "test.sqf" Share this post Link to post Share on other sites
Kunsa 10 Posted November 10, 2013 yea that too... but then you can't have a sleep in test.sqf Share this post Link to post Share on other sites
cuel 25 Posted November 11, 2013 yea that too... but then you can't have a sleep in test.sqf Depends on the context it runs from. Directly from the editor? No. Init.sqf? Works just fine. Share this post Link to post Share on other sites