SetVehicleComponentRotation

From Multi Theft Auto: Wiki
Revision as of 04:40, 17 September 2012 by Lexr128 (talk | contribs) (Created page with "__NOTOC__ {{Client function}} {{New items|3.0151|1.4| This function set component rotation for vehicle. }} ==Syntax== <syntaxhighlight lang="lua"> bool setVehicleComponentRotation ( vehic...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This function set component rotation for vehicle.

Syntax

bool setVehicleComponentRotation ( vehicle theVehicle, string theComponent, float rotX, float rotY, float rotZ )

Required Arguments

  • theVehicle: The vehicle you wish to set component rotation.
  • theComponent: A component.
  • rotX: The component's rotation around the x axis in degrees.
  • rotY: The component's rotation around the y axis in degrees.
  • rotZ: The component's rotation around the z axis in degrees.

List of components:

  • special_1
  • special_2
  • special_3
  • special_4
  • special_5
  • bonnet
  • boot
  • bumper_1
  • bumper_2
  • chassis
  • door_1
  • door_2
  • door_3
  • door_4
  • exhaust
  • wing_lf
  • wing_rf
  • extra_1
  • extra_2

Return

Return true if component rotation was set successfully, false otherwise.

See Also