Difference between revisions of "0422"

From GTAMods Wiki
Jump to navigation Jump to search
(Created page with "{{OpCode | games = {{Icon|3}} | command = DOES_GARAGE_CONTAIN_CAR | description = Checks if the garage contains the car | syntax1 = 0422:   garage_contain_c...")
 
m
 
Line 2: Line 2:
 
| games      = {{Icon|3}}
 
| games      = {{Icon|3}}
 
| command    = DOES_GARAGE_CONTAIN_CAR
 
| command    = DOES_GARAGE_CONTAIN_CAR
| description = Checks if the garage contains the car
+
| description = Checks if the [[garage]] contains the vehicle
 
| syntax1    = 0422:   garage_contain_car [''garage handle''] [''car handle'']
 
| syntax1    = 0422:   garage_contain_car [''garage handle''] [''car handle'']
 
| p1t        = [''garage handle'']
 
| p1t        = [''garage handle'']
| p1d        = The handle of the [[garage]]
+
| p1d        = The handle of the garage
 
| p2t        = [''car handle'']
 
| p2t        = [''car handle'']
 
| p2d        = The handle of the vehicle
 
| p2d        = The handle of the vehicle
 
}}
 
}}
  
This conditional opcode returns true when the vehicle is fully contained inside the garage. Note that wrecking the vehicle and leaving it inside the garage will eventually crash the game (it is not immediate).
+
This conditional opcode returns true if the vehicle is fully contained inside the garage. Note that wrecking the vehicle and leaving it inside the garage will eventually crash the game (it is not immediate).
  
 
== Keywords ==
 
== Keywords ==
 
check, does, garage, contain, car, vehicle
 
check, does, garage, contain, car, vehicle

Latest revision as of 02:22, 22 June 2016

GTA III DOES_GARAGE_CONTAIN_CAR


Description
Checks if the garage contains the vehicle
Syntax
0422:   garage_contain_car [garage handle] [car handle]
Parameter
[garage handle]
The handle of the garage
[car handle]
The handle of the vehicle

This conditional opcode returns true if the vehicle is fully contained inside the garage. Note that wrecking the vehicle and leaving it inside the garage will eventually crash the game (it is not immediate).

Keywords

check, does, garage, contain, car, vehicle