GetVehicleComponentRotation: 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 get component rotation.
*'''theVehicle:''' The [[vehicle]] you wish to get component rotation.
*'''theComponent:''' A component.
*'''theComponent:''' A vehicle component:
**'''"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":'''


'''List of components:'''
===Returns===
*special_1
Returns three ''floats'' indicating the rotation of the component, ''x'', ''y'' and ''z'' respectively.
*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===  
==Example==
Returns three ''floats'' indicating the rotation of the component, ''x'', ''y'' and ''z'' respectively.
TODO
<syntaxhighlight lang="lua">
--TODO
</syntaxhighlight>


==See Also==
==See Also==
{{Client_vehicle_functions}}
{{Client_vehicle_functions}}
[[Category:Needs Example]]
[[Category:Needs Example]]

Revision as of 12:58, 17 September 2012

This function get component rotation for vehicle.

Syntax

float, float, float getVehicleComponentRotation ( vehicle theVehicle, string theComponent )

Required Arguments

  • theVehicle: The vehicle you wish to get component rotation.
  • theComponent: A vehicle component:
    • "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":

Returns

Returns three floats indicating the rotation of the component, x, y and z respectively.

Example

TODO

--TODO

See Also