Jump to content
Sign in to follow this  
decap

difference in sqs and sqf in my script line

Recommended Posts

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

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×