SetObjectRotation
From Onset Developer Wiki
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
- __EDIT_ME__
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