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.
- CreateObject: Create an object.
- DestroyObject: Destroy an object.
- IsValidObject: Checks if a certain object is vaild.
- MoveObject: Move an object.
- StopObject: Stop an object from moving.
- SetObjectPos: Set the position of an object.
- GetObjectPos: Locate an object.
- GetObjectRot: Check the rotation of an object.
- AttachObjectToPlayer: Attach an object to a player.