muttly 10 Posted November 15, 2009 Hi guys Bit of noob question but how do i call all my scripts from a script folder my mission folder full with scripts getting messy iam guessing i just call the folder from my init.sqf but what do i type exactly:o thanks Share this post Link to post Share on other sites
Deadfast 43 Posted November 15, 2009 You can't execute them all at once, you need to do it separately: execVM "scripts\stuff1.sqf" execVM "scripts\stuff2.sqf" execVM "scripts\stuff3.sqf" Share this post Link to post Share on other sites
muttly 10 Posted November 15, 2009 Thanks deadfast :) Share this post Link to post Share on other sites
[frl]myke 14 Posted November 16, 2009 I guess this should work also: _array = [ [[var1, var2], "scripts\stuff1.sqf"], [var3, "scripts\stuff2.sqf"], [[var2, var4], "scripts\stuff3.sqf"] ]; { _nul = (_x select 0) execVM (_x select 1); }foreach _array; Instead of writing a line for each script, collect parameters and path into a nested array and use the foreach to start all scripts. Share this post Link to post Share on other sites