Difference between revisions of "Scripting Tutorial: Basic Scripting Knowledge"
Jump to navigation
Jump to search
Scripting Tutorial: Basic Scripting Knowledge (edit)
Revision as of 17:21, 1 August 2007
, 17:21, 1 August 2007updating link
imported>Sythe1525 |
imported>DragoonWraith (updating link) |
||
Line 34: | Line 34: | ||
<br> | <br> | ||
== 3. [[ | == 3. [[Reference|References]] and [[:Category:Variables|Variables]] == | ||
Functions affect the "calling object" (That on which the script is running) by default, but you can redirect them to another object by using the object's [[:Category:References|reference]]. When you want a script to affect the player for example, use the player's reference ("Player") and a '.' to redirect the function-call to the player instead of the calling object. | Functions affect the "calling object" (That on which the script is running) by default, but you can redirect them to another object by using the object's [[:Category:References|reference]]. When you want a script to affect the player for example, use the player's reference ("Player") and a '.' to redirect the function-call to the player instead of the calling object. |