Difference between revisions of "GetVehicleRotation"
|Line 15:||Line 15:|
*'''vehicle''': The vehicle whose rotation you want to retrieve.
*'''vehicle''': The vehiclewhose rotation you want to retrieve.
Revision as of 03:06, 20 May 2006
This function returns three floats containing the rotational position of the vehicle along the X, Y, and Z axes respectively as degrees. If this function does fail, it will return 'false'.
GetVehicleRotation ( vehicle )
This function also has three variants that allow you to retrieve data from just one of the three axis.
GetVehicleRotation|GetVehicleRotationX ( vehicle )
GetVehicleRotation|GetVehicleRotationY ( vehicle )
GetVehicleRotation|GetVehicleRotationZ ( vehicle )
- vehicle: The vehicle whose rotation you want to retrieve.
newcar = createVehicle ( 520, 1024, 1024, 1024 ) x, y, z = GetVehicleRotation ( newcar ) if (x) outputChatBox ( "Current rotation: ", x, " ," ,y ," ," ,z , "." ) end