Difference between revisions of "Variables and Properties"

1 byte removed ,  06:49, 13 February 2012
imported>Evernewjoy
imported>Evernewjoy
Line 263: Line 263:
endEVENT
endEVENT
</source>
</source>




Line 296: Line 295:
'''Things to Remember'''
'''Things to Remember'''


If you do not make an instance of the script that contains the variable you want to access, you cannot use the variable, you must have an object with the variable-reservoir script attached to itself.
* If you do not make an instance of the script that contains the variable you want to access, you cannot use the variable, you must have an object with the variable-reservoir script attached to itself.




And remember to set the scriptVar to the script-as-a-property, the highlighted line in the script itself.
* Remember to set the scriptVar to the script-as-a-property, the highlighted line in the script itself.




Anonymous user