CreateObject: Difference between revisions

From Onset Developer Wiki
(Created page with "{{Info|Function|Server|1.0}} {{FuncDescription|__EDIT_ME__}} {{FuncSyntax|CreateObject(modelid, x, y, z [, rx, ry, rz, sx, sy, sz])}} {{FuncParameters}} {{FuncParam|modelid...")
 
No edit summary
Line 1: Line 1:
{{Info|Function|Server|1.0}}
{{Info|Function|Server|1.0}}


{{FuncDescription|__EDIT_ME__}}
{{FuncDescription|This function creates an object at a desired location. See [[Objects]] for a list of models.}}


{{FuncSyntax|CreateObject(modelid, x, y, z [, rx, ry, rz, sx, sy, sz])}}
{{FuncSyntax|CreateObject(modelid, x, y, z [, rx, ry, rz, sx, sy, sz])}}


{{FuncParameters}}
{{FuncParameters}}
{{FuncParam|modelid|__EDIT_ME__}}
{{FuncParam|modelid|The [[Objects|model identifier]] for which object to spawn.}}
{{FuncParam|x|__EDIT_ME__}}
{{FuncParam|x|__EDIT_ME__}}
{{FuncParam|y|__EDIT_ME__}}
{{FuncParam|y|__EDIT_ME__}}
Line 17: Line 17:
{{FuncParamOptional|sz|__EDIT_ME__}}
{{FuncParamOptional|sz|__EDIT_ME__}}


{{FuncReturnValue|__EDIT_ME__}}
{{FuncReturnValue|Returns an identifier to the new object. '''false''' on error.}}


== Example ==
== Example ==
Line 23: Line 23:


{{RelatedFunctions}}
{{RelatedFunctions}}
__EDIT_ME__
{{ObjectFunctions}}

Revision as of 13:51, 22 March 2019

CreateObject

Type: Function
Context: Server
Introduced: v1.0

Description

This function creates an object at a desired location. See Objects for a list of models.

Syntax

CreateObject(modelid, x, y, z [, rx, ry, rz, sx, sy, sz])

Parameters

  • modelid
    The model identifier for which object to spawn.
  • x
    __EDIT_ME__
  • y
    __EDIT_ME__
  • z
    __EDIT_ME__
  • rx
    __EDIT_ME__
  • ry
    __EDIT_ME__
  • rz
    __EDIT_ME__
  • sx
    __EDIT_ME__
  • sy
    __EDIT_ME__
  • sz (optional)
    __EDIT_ME__

Return Value

  • Returns an identifier to the new object. false on error.

Example

__EDIT_ME__

See also