GetObject

(Difference between revisions)
Jump to: navigation, search
Line 17: Line 17:
  
 
Note : You must do the same for anything you want to apply a script. It includes Camera, Text, Meshes and Sounds.
 
Note : You must do the same for anything you want to apply a script. It includes Camera, Text, Meshes and Sounds.
 +
 +
[[Category:Lua scripting]]

Revision as of 18:58, 4 February 2014

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") 

To declare an object from another scene, include the scene as first argument :

   scene2 = getScene("scene2")
   scene2object = getObject(scene2, "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.

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox