Loading...
 
Objects        

Objects

Object is used in Lua scripts to add a class to the map.

Grammar

 object `path/ClassName` (x,y,z) { attrs }

Attributes are separated by commas, and are optional.
You do not need to specify the path if the class is in the same folder as the lua file containing the object definition.

Attributes

  • name=" "

Name is used to specify the name of the object in the game world, and it is useful for picking the object and interacting with it using code.

  • rot=euler(x,y,z)
  • rot=quat(w,x,y,z)

Rotation can be omitted or specified with either quaternions or euler angles.