SetVehicleRotation: Difference between revisions
Jump to navigation
Jump to search
JonChappell (talk | contribs) No edit summary |
mNo edit summary |
||
Line 4: | Line 4: | ||
==Syntax== | ==Syntax== | ||
bool [[SetVehicleRotation]] ( [[vehicle]] vehicle, rx, ry, rz ) | bool [[SetVehicleRotation]] ( [[vehicle]] vehicle, float rx, float ry, float rz ) | ||
===Required Arguments=== | ===Required Arguments=== | ||
*'''vehicle''': The [[vehicle]] that you wish to apply the warp to. | *'''vehicle''': The [[vehicle]] that you wish to apply the warp to. | ||
*'''x''': The x-axis rotation. | *'''x''': The x-axis rotation in radians. | ||
*'''y''': The y-axis rotation. | *'''y''': The y-axis rotation in radians. | ||
*'''z''': The z-axis rotation. | *'''z''': The z-axis rotation in radians. | ||
{{UsingRadians}} | |||
==Example== | ==Example== |
Revision as of 10:01, 28 March 2006
Description
This function rotates a vehicle around a single point. The function returns a boolean value (true or false) that tells you if it was successful or not.
Syntax
bool SetVehicleRotation ( vehicle vehicle, float rx, float ry, float rz )
Required Arguments
- vehicle: The vehicle that you wish to apply the warp to.
- x: The x-axis rotation in radians.
- y: The y-axis rotation in radians.
- z: The z-axis rotation in radians.
Example
newcar = createVehicle ( 520, 1024, 1024, 1024 ) if (SetVehicleRotation ( newcar, 0.543,2.335,3.127 )) serverChat ( "Rotation change successful." ) end