SetPlayerObjectRot

From SA-MP Wiki

Jump to: navigation, search


Description:

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


Parameters:
(playerid, objectid, Float:RotX, Float:RotY, Float:RotZ)
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.


Return Values:

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


Image:32px-Ambox_warning_orange.png

Note

To smoothly rotate an object, see MovePlayerObject.


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.


Personal tools
Navigation
Toolbox
In other languages