Jump to content
Sign in to follow this  
jacmac

What does "@" mean in this scriptlet?

Recommended Posts

#loop
@TheMan distance TheFlag < 50
ManIsHere = true; publicVariable "ManIsHere"
@TheMan distance TheFlag > 50
goto "loop"

I tried searching, but it's pretty hard to search for "@" and get meaningful results.

Share this post


Link to post
Share on other sites

From the looks of it it means if. However this is SQS syntax, not SQF, and shouldn't be used anymore.

SQF:

waitUntil {TheMan distance TheFlag < 50};
ManIsHere = true; publicVariable "ManIsHere";

Share this post


Link to post
Share on other sites

That's old sqs format. Try and stick to sqf:

while {true} do
{
if (TheMan distance TheFlag < 50) then
{
	ManIsHere = true;
	publicVariable "ManIsHere";
};
};

EDIT: Ninja'd

Share this post


Link to post
Share on other sites

OK so TheMan was simply a variable, thanks.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×