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| | {{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| | {{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| | {{FuncReturnValue|Returns an identifier to the new object. '''false''' on error.}} | ||
== Example == | == Example == | ||
Line 23: | Line 23: | ||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
{{ObjectFunctions}} |
Revision as of 13:51, 22 March 2019
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
- CreateObject
- DestroyObject
- IsValidObject
- GetObjectCount
- GetObjectModel
- IsObjectStreamedIn
- EnableObjectStreamEvents
- SetObjectStreamDistance
- SetObjectLocation
- GetObjectLocation
- SetObjectRotation
- GetObjectRotation
- SetObjectScale
- GetObjectScale
- SetObjectAttached
- SetObjectDetached
- IsObjectAttached
- GetObjectAttachmentInfo
- IsObjectMoving
- SetObjectMoveTo
- StopObjectMove
- SetObjectRotateAxis
- GetObjectModelCount
- GetObjectMass
- GetStreamedObjects
- GetObjectBoundingBox
- GetObjectSize
- EnableObjectHitEvents
- SetObjectEditable
- SetObjectOutline
- SetObjectColor
- SetObjectEmissiveColor
- SetObjectTexture
- SetObjectAnimatedTexture
- SetObjectCastShadow
- SetObjectDimension
- GetObjectActor
- GetAllObjects
- SetObjectModel