SetVehicleDoorState

From Multi Theft Auto: Wiki
Revision as of 16:10, 13 August 2007 by Norby89 (talk | contribs) (→‎Syntax)
Jump to navigation Jump to search

This function sets the state of a specified door on the vehicle.

Syntax

setVehicleDoorState ( vehicle theVehice, int door, int state )

Required Arguments

  • Vehicle: A handle to the vehicle that you wish to change the door state of.
  • Door: A whole number between 0 and 5.
  • State: A whole number determining the new state of the door. (0: intact, 1: swinging-free 2: bashed, 3: bashed+swinging-free, 4: missing )

Example

newcar = createVehicle ( 520, 1024, 1024, 1024 )
state = setVehicleDoorState ( newcar, 2, 4 ) -- Breaks the front-left door off of a vehicle.

See Also