SetObjectRot

Description

Set the rotation of an object on the three axes (X, Y and Z).

NameDescription
objectidThe ID of the object to set the rotation of.
Float:RotXThe X rotation.
Float:RotYThe Y rotation.
Float:RotZThe Z rotation.

Returns

This function always returns 1, even if the object doesn't exist.

Examples

SetObjectRot(objectid, 45, 90, 180);

Related Functions