sw1 10 Posted June 10, 2011 (edited) 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 June 10, 2011 by SW1 Share this post Link to post Share on other sites
giallustio 770 Posted June 10, 2011 (edited) With the underscore the variable is local and it's valid only for the script...If u don't use the underscore the variable is saved and u can use it in another script. This can help u better :) http://community.bistudio.com/wiki/Variables#Local_Variables Edited June 10, 2011 by Giallustio Share this post Link to post Share on other sites
PuFu 4600 Posted June 10, 2011 _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
sw1 10 Posted June 10, 2011 OK guys that makes sense Thanks for the help it's much appreciated :) Share this post Link to post Share on other sites
red62dota 0 Posted August 21, 2016 Thanks for this info! Share this post Link to post Share on other sites