GetObject
(Difference between revisions)
(Created page with "Any object you want to apply an action must be declared with getObject. Eg. If you try to translate an object without declaring it first, nothing will happen. To declare an...") |
m |
||
Line 10: | Line 10: | ||
CustomName = getObject("object") | CustomName = getObject("object") | ||
+ | |||
+ | Note : You must do the same for anything you want to apply a script. It includes Camera, Text, Meshes and Sounds. |
Revision as of 01:42, 11 April 2012
Any object you want to apply an action must be declared with getObject.
Eg. If you try to translate an object without declaring it first, nothing will happen.
To declare an object, simply put at the top of the script :
object = getObject("object")
You can also give it a different name :
CustomName = getObject("object")
Note : You must do the same for anything you want to apply a script. It includes Camera, Text, Meshes and Sounds.