GetVehicleModelDummyDefaultPosition: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
(Remove obsolete Requirements section)
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{Client function}}
{{Client function}}
__NOTOC__
__NOTOC__
{{New feature/item|3.0159|1.5.8|20797|
{{Added feature/item|1.5.9|1.5.8|20797|This function gets the default position of the dummies contained in a [[vehicle]] model.}}
This function gets the default position of the dummies contained in a vehicle model.
}}


==Syntax==
==Syntax==
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
float, float, float getVehicleModelDummyDefaultPosition ( int modelID, string dummy )
float, float, float getVehicleModelDummyDefaultPosition ( int modelId, string dummy )
</syntaxhighlight>
</syntaxhighlight>
{{OOP||[[Vehicle]].getVehicleModelDummyDefaultPosition }}
{{OOP||[[vehicle]].getVehicleModelDummyDefaultPosition}}


===Required Arguments===  
===Required Arguments===  
* '''modelID''': The model ID which you want to apply the change to
* '''modelId''': The model ID which you want to apply the change to.
* '''dummy''': The dummy whose position you want to get
* '''dummy''': The dummy whose position you want to get.


==Allowed dummies==
===Allowed Dummies===
{{VehicleDummies}}
{{VehicleDummies}}


===Returns===
===Returns===
Returns three floats indicating the default position ''x'', ''y'' and ''z'' of the given dummy. It returns ''false'' otherwise.
Returns 3 [[Float|floats]] indicating the default position X, Y and Z of the given dummy. It returns ''false'' otherwise.


==Example==  
==Example==  
{{Needs Example}}
{{Needs Example}}
==Requirements==
{{Requirements||1.5.8-9.20797|}}


==See Also==
==See Also==
{{Client_vehicle_functions}}
{{Client_vehicle_functions}}

Latest revision as of 17:26, 7 November 2024

This function gets the default position of the dummies contained in a vehicle model.

Syntax

float, float, float getVehicleModelDummyDefaultPosition ( int modelId, string dummy )

OOP Syntax Help! I don't understand this!

Method: vehicle.getVehicleModelDummyDefaultPosition(...)


Required Arguments

  • modelId: The model ID which you want to apply the change to.
  • dummy: The dummy whose position you want to get.

Allowed Dummies

  • light_front_main: Primary front lights position.
  • light_rear_main: Primary rear lights position.
  • light_front_second: Secondary front lights position.
  • light_rear_second: Secondary rear lights position.
  • seat_front: Front seat position.
  • seat_rear: Rear seat position.
  • exhaust: Exhaust fumes start position.
  • engine: Engine smoke start position.
  • gas_cap: Vehicle gas cap position (shooting it will explode vehicle).
  • trailer_attach: Point at which trailers will be attached to vehicle.
  • hand_rest: Point at which the steer of a bike is held.
  • exhaust_second: Secondary exhaust position (for example in NRG-500)
  • wing_airtrail: Point from which air trail will show in airplanes, visible while in sharp turns.
  • veh_gun: Vehicle gun position (ex. Rustler).

Returns

Returns 3 floats indicating the default position X, Y and Z of the given dummy. It returns false otherwise.

Example

Accessories-text-editor.png Script Example Missing Function GetVehicleModelDummyDefaultPosition needs a script example, help out by writing one.

Before submitting check out Editing Guidelines Script Examples.


See Also