GetVehicleRotationQuat
From SA-MP Wiki
Description:
Returns a vehicle's rotation on all axes as a quaternion.
(vehicleid, &Float:w, &Float:x, &Float:y, &Float:z)
vehicleid | The ID of the vehicle to get the rotation of. |
&Float:w | A float variable in which to store the first quaternion angle, passed by reference. |
&Float:x | A float variable in which to store the second quaternion angle, passed by reference. |
&Float:y | A float variable in which to store the third quaternion angle, passed by reference. |
&Float:z | A float variable in which to store the fourth quaternion angle, passed by reference. |
Return Values:
- 1: The function was executed successfully.
- 0: The function failed to execute. This means the vehicle specified does not exist.
- The vehicle's rotation is stored in the specified variables.
Notes |
|
Related Functions
The following functions may be helpful as they relate to this function in one way or another.
- GetVehicleZAngle: Check the current angle of a vehicle.
- GetVehicleRotation: Get the rotation of a vehicle on the XYZ axis.