Jump to content
Sign in to follow this  
sw1

Use of underscore Syntax

Recommended Posts

Sorry this going to sound really basic (:o) but I'm trying to learn to script and I was wandering how the _ syntax is used?

For example

_num=player countEnemy list _triggerN1

What is the significance of the underscore there, as opposed to just "num=player"?

Many thanks in advance

Edited by SW1

Share this post


Link to post
Share on other sites

_variable is local to the script and doesn't need to be defined globally. the _variable can take many forms

in the case you have there (which is probably a snippet from a larger script), _num is the player and _triggerN1 is a generic form, or it is defined someplace else.

btw: please change the title to something worth reading

Share this post


Link to post
Share on other sites

OK guys that makes sense

Thanks for the help it's much appreciated :)

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  

×