SetVehicleComponentRotation: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 12: Line 12:
===Required Arguments===  
===Required Arguments===  
*'''theVehicle:''' The [[vehicle]] you wish to set component rotation.
*'''theVehicle:''' The [[vehicle]] you wish to set component rotation.
*'''theComponent:''' A vehicle component:
*'''theComponent:''' A vehicle component (this is the frame name from the model file of the component you wish to modify)
**'''"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":'''
*'''rotX:''' The component's rotation around the x axis in degrees.
*'''rotX:''' The component's rotation around the x axis in degrees.
*'''rotY:''' The component's rotation around the y axis in degrees.
*'''rotY:''' The component's rotation around the y axis in degrees.

Revision as of 20:35, 25 October 2012

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 vehicle component (this is the frame name from the model file of the component you wish to modify)
  • 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.

Returns

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

Example

TODO

--TODO

See Also