SetPlayerObjectRot

Description

Set the rotation of an object on the X, Y and Z axis.

NameDescription
playeridThe ID of the player whose player-object to rotate.
objectidThe ID of the player-object to rotate.
Float:RotXThe X rotation to set.
Float:RotYThe Y rotation to set.
Float:RotZThe Z rotation to set.

Returns

1: The function executed successfully.

0: The function failed to execute.

Examples

SetPlayerObjectRot(playerid, objectid, RotX, RotY, RotZ);

Notes

tip

To smoothly rotate an object, see MovePlayerObject.

Related Functions