SetObjectRot

From SA-MP Wiki

Jump to: navigation, search


Description:

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


Parameters:
(objectid, Float:RotX, Float:RotY, Float:RotZ)
objectidThe ID of the object to set the rotation of.
Float:RotXThe X rotation.
Float:RotYThe Y rotation.
Float:RotZThe Z rotation.


Return Values:

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


Example Usage:

SetObjectRot(objectid, 45, 90, 180);

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