SetVehicleComponentPosition: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ {{Client function}} {{New items|3.0151|1.4| This function set component position for vehicle. }} ==Syntax== <syntaxhighlight lang="lua"> bool setVehicleComponentPosition ( vehic...")
 
No edit summary
Line 12: Line 12:
===Required Arguments===  
===Required Arguments===  
*'''theVehicle:''' The [[vehicle]] you wish to set component position.
*'''theVehicle:''' The [[vehicle]] you wish to set component position.
*'''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":'''
*'''posX:''' The x position of this component from the center of the vehicle.
*'''posX:''' The x position of this component from the center of the vehicle.
*'''posY:''' The y position of this component from the center of the vehicle.
*'''posY:''' The y position of this component from the center of the vehicle.
*'''posZ:''' The z position of this component from the center of the vehicle.
*'''posZ:''' The z position of this component from the center of the vehicle.


'''List of components:'''
===Returns===
*special_1
Return ''true'' if component position was set successfully, ''false'' otherwise.
*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==  
Return ''true'' if component position was set successfully, ''false'' otherwise.
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:55, 17 September 2012

This function set component position for vehicle.

Syntax

bool setVehicleComponentPosition ( vehicle theVehicle, string theComponent, float posX, float posY, float posZ )

Required Arguments

  • theVehicle: The vehicle you wish to set component position.
  • 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":
  • posX: The x position of this component from the center of the vehicle.
  • posY: The y position of this component from the center of the vehicle.
  • posZ: The z position of this component from the center of the vehicle.

Returns

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

Example

TODO

-- TODO

See Also