Jump to content
Sign in to follow this  
BeerHunter

Simple scripting question - underscore

Recommended Posts

I'm new to scripting and just trying to learn.

I notice that the declared / defined variables are preceded with an underscore (ie : _Var). Is this necessary or simply a convention?

Also , is there a listing anywhere of keywords for the SQF language?

Txs

Share this post


Link to post
Share on other sites

OMG 19 views , loads of questions about triggers , models etc. and no one seems to be able to answer a simple syntax question?

Share this post


Link to post
Share on other sites

I'm not entirely sure, and I'm certain someone will correct me, but I think the underscore defines the variable as local to the script it's defined in, i.e not accessible to another script, while a non-underscored variable (might) be global.

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  

×