SetObjectRot

SetObjectRot

Description:
Function SetObjectRot set the rotation of an object on the three axes (X, Y and Z).


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


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


Examples:
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.