Skip to main content

CreateObject

Creates a world object.

{{#tag:syntaxhighlight|Object Object.CreateObject(uint model, Vector3 pos, Quaternion rot, uint dimension = GlobalDimension);|lang=csharp}} {{#tag:syntaxhighlight|Object Object.CreateObject(int model, Vector3 pos, Vector3 rot, byte alpha = 255, uint dimension = GlobalDimension);|lang=csharp}} {{#tag:syntaxhighlight|Object Object.CreateObject(uint model, Vector3 pos, Vector3 rot, byte alpha = 255, uint dimension = GlobalDimension);|lang=csharp}}

  • model: The model of the object to be created.
  • pos: The position where the object will be created.
  • rot: The rotation applied to the object.
  • alpha: Optional, makes the object have transparency.
  • dimension: Optional, the dimension from which the object will be seen.

{{#tag:syntaxhighlight| // Code here... |lang=csharp}} }}