SetObjectRotation: Difference between revisions
From Onset Developer Wiki
No edit summary |
No edit summary |
||
Line 11: | Line 11: | ||
{{FuncParam|rz|The rotation Z axis}} | {{FuncParam|rz|The rotation Z axis}} | ||
{{FuncReturnValue| | {{FuncReturnValue|Returns '''true''' on success.}} | ||
== Example == | == Example == |
Latest revision as of 17:05, 13 December 2019
Description
Set the specified object's rotation.
Syntax
SetObjectRotation(object, rx, ry, rz)
Parameters
- object
The object identifier - rx
The rotation X axis - ry
The rotation Y axis - rz
The rotation Z axis
Return Value
- Returns true on success.
Example
local objectId = CreateObject(592, 0.0, 0.0, 100.0)
SetObjectRotation(objectId, 0.0, 0.0, 90.0)
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