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|__EDIT_ME__}}
{{FuncDescription|Set the specified object's rotation.}}


{{FuncSyntax|SetObjectRotation(object, rx, ry, rz)}}
{{FuncSyntax|SetObjectRotation(object, rx, ry, rz)}}


{{FuncParameters}}
{{FuncParameters}}
{{FuncParam|object|__EDIT_ME__}}
{{FuncParam|object|The object identifier}}
{{FuncParam|rx|__EDIT_ME__}}
{{FuncParam|rx|The rotation X axis}}
{{FuncParam|ry|__EDIT_ME__}}
{{FuncParam|ry|The rotation Y axis}}
{{FuncParam|rz|__EDIT_ME__}}
{{FuncParam|rz|The rotation Z axis}}


{{FuncReturnValue|__EDIT_ME__}}
{{FuncReturnValue|__EDIT_ME__}}


== Example ==
== Example ==
__EDIT_ME__
<syntaxhighlight lang="Lua">
local objectId = CreateObject(592, 0.0, 0.0, 100.0)
SetObjectRotation(objectId, 0.0, 0.0, 90.0)
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
__EDIT_ME__
{{Template:ObjectFunctions}}

Revision as of 09:52, 12 December 2019