SetObjectModel: Difference between revisions
From Onset Developer Wiki
Created page with "{{Info|Function|Server|1.0}} {{FuncDescription|This function changes the model of the created object. This function calls OnObjectModelChange event on client side.}} {{..." |
No edit summary |
||
Line 1: | Line 1: | ||
{{Info|Function|Server|1.0}} | {{Info|Function|Server|1.1.0}} | ||
{{FuncDescription|This function changes the model of the created object. This function calls [[OnObjectModelChange]] event on client side.}} | {{FuncDescription|This function changes the model of the created object. This function calls [[OnObjectModelChange]] event on client side.}} |
Revision as of 20:57, 7 March 2020
Description
This function changes the model of the created object. This function calls OnObjectModelChange event on client side.
Syntax
SetObjectModel(objectid, modelid)
Parameters
- objectid
The object identifier. - modelid
The model identifier for which object to spawn.
Return Value
- Returns true on success.
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