SetObjectRotation: Difference between revisions
From Onset Developer Wiki
Created page with "{{Info|Function|Server|1.0}} {{FuncDescription|__EDIT_ME__}} {{FuncSyntax|SetObjectRotation(object, rx, ry, rz)}} {{FuncParameters}} {{FuncParam|object|__EDIT_ME__}} {{Func..." |
No edit summary |
||
Line 1: | Line 1: | ||
{{Info|Function|Server|1.0}} | {{Info|Function|Server|1.0}} | ||
{{FuncDescription| | {{FuncDescription|Set the specified object's rotation.}} | ||
{{FuncSyntax|SetObjectRotation(object, rx, ry, rz)}} | {{FuncSyntax|SetObjectRotation(object, rx, ry, rz)}} | ||
{{FuncParameters}} | {{FuncParameters}} | ||
{{FuncParam|object| | {{FuncParam|object|The object identifier}} | ||
{{FuncParam|rx| | {{FuncParam|rx|The rotation X axis}} | ||
{{FuncParam|ry| | {{FuncParam|ry|The rotation Y axis}} | ||
{{FuncParam|rz| | {{FuncParam|rz|The rotation Z axis}} | ||
{{FuncReturnValue|__EDIT_ME__}} | {{FuncReturnValue|__EDIT_ME__}} | ||
== Example == | == Example == | ||
<syntaxhighlight lang="Lua"> | |||
local objectId = CreateObject(592, 0.0, 0.0, 100.0) | |||
SetObjectRotation(objectId, 0.0, 0.0, 90.0) | |||
</syntaxhighlight> | |||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
{{Template:ObjectFunctions}} |
Revision as of 09:52, 12 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
- __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