GetVehicleComponentPosition: 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 get component position for vehicle. }} ==Syntax== <syntaxhighlight lang="lua"> float, float, float getVehicleComponentP...")
 
No edit summary
Line 11: Line 11:


===Required Arguments===  
===Required Arguments===  
*'''theVehicle:''' The [[vehicle]] you wish to set component position.
*'''theVehicle:''' The [[vehicle]] you wish to get component position.
*'''theComponent:''' A component.
*'''theComponent:''' A component.



Revision as of 04:41, 17 September 2012

This function get component position for vehicle.

Syntax

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

Required Arguments

  • theVehicle: The vehicle you wish to get component position.
  • theComponent: A component.

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

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

See Also