Difference between revisions of "020A"

From GTAMods Wiki
Jump to navigation Jump to search
Line 5: Line 5:
 
| p2          = Integer
 
| p2          = Integer
 
| game        = [[GTA 3]], [[Vice City]], [[San Andreas]]
 
| game        = [[GTA 3]], [[Vice City]], [[San Andreas]]
 +
| native      = [[LOCK_CAR_DOORS]]
 
}}
 
}}
This opcode sets the door status of the vehicle. Of course, the opcode only works on vehicles with a working door.
+
This opcode sets the door status of the vehicle. Of course, the opcode only affects vehicles with a working door.
 
*1 - unlocked car
 
*1 - unlocked car
 
*2 - locked car - properties include doors can't fall off, no one can enter but can exit but can enter car if door left wide open or fallen off
 
*2 - locked car - properties include doors can't fall off, no one can enter but can exit but can enter car if door left wide open or fallen off

Revision as of 15:30, 12 September 2010

{{{games}}}


Description
Sets the door lock status
Syntax
{{{syntax1}}}
Parameter
Native analog
LOCK_CAR_DOORS

This opcode sets the door status of the vehicle. Of course, the opcode only affects vehicles with a working door.

  • 1 - unlocked car
  • 2 - locked car - properties include doors can't fall off, no one can enter but can exit but can enter car if door left wide open or fallen off
  • 3 - locked for the player, not locked for NPCs
  • 4 - locked, the player is stuck in the car
  • 5 - locked when not in car, unlocks when in car
  • 6 - animation will never leave door opened, always closes door
  • 7 - locked but doors can fall off

In GTA III, this opcode behaves exactly as opcode 0135.

Keywords

set, car, vehicle, door, lock, status