SetVehicleRotation

From Multi Theft Auto: Wiki
Revision as of 07:57, 28 March 2006 by JonChappell (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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, rx, ry, rz )

Template:UsingRadians

Required Arguments

  • vehicle: The vehicle that you wish to apply the warp to.
  • x: The x-axis rotation.
  • y: The y-axis rotation.
  • z: The z-axis rotation.

Example

newcar = createVehicle ( 520, 1024, 1024, 1024 )

if (SetVehicleRotation ( newcar, 0.543,2.335,3.127 ))
 serverChat ( "Rotation change successful." )
end