CreateObject

From Onset Developer Wiki
Revision as of 13:51, 22 March 2019 by BlueMountains (talk | contribs)
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