decap 10 Posted October 2, 2010 I am trying to get this line to run in my init.sqs [] spawn { while {not isnull suv} do { "bgm" setmarkerpos getpos suv; sleep 0.5; }; }; it worked fine when my init.sqs was a sqf file. I changed it to a sqs cause the GDT spectate script I am running requires the sqs. My question is how do I get the above code to work in a sqs instead of a sqf? Share this post Link to post Share on other sites
kylania 567 Posted October 2, 2010 Keep it SQF and just add this to your init.sqf: // GDT Spectate allplayerdead=false; winend=false; loseend=false; [] exec "Host\Alive_Check.sqs"; [] execVM "gdtmod\gdtmod.sqf"; [] execVM "briefing.sqf"; // End GDT Spectate The reason it's not working as SQS is because semi-colon ( ; ) is a comment character in SQS and end of line in SQF, so you're commenting out the rest of your while loop there. Share this post Link to post Share on other sites
katdogfizzow 13 Posted October 2, 2010 Keep it SQF and just add this to your init.sqf: // GDT Spectate allplayerdead=false; winend=false; loseend=false; [] exec "Host\Alive_Check.sqs"; [] execVM "gdtmod\gdtmod.sqf"; [] execVM "briefing.sqf"; // End GDT Spectate The reason it's not working as SQS is because semi-colon ( ; ) is a comment character in SQS and end of line in SQF, so you're commenting out the rest of your while loop there. Those darned semi-colons! you're a genius kylania... thanks Share this post Link to post Share on other sites
decap 10 Posted October 2, 2010 You're the best kylania. Love your website by the way....Keep up the good work Share this post Link to post Share on other sites