SetPlayerObjectRot

SetPlayerObjectRot

Description:
Function SetPlayerObjectRot set the rotation of an object on the X, Y and Z axis.
To smoothly rotate an object, see MovePlayerObject.


Parameters:
(playerid, objectid, Float:RotX, Float:RotY, Float:RotZ)
int playerid The ID of the player whose player-object to rotate.
int objectid The ID of the player-object to rotate.
float RotX The X rotation to set.
float RotY The Y rotation to set.
float RotZ The Z rotation to set.


Return Values:
  • 1: The function was executed successfully.
  • 0: The function failed to execute.


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


Related Functions
The following functions may be useful, as they are related to this function in one way or another.