021C

From GTAMods Wiki
Revision as of 20:54, 18 January 2017 by Spaceeinstein (talk | contribs) (Created page with "{{OpCode | games = {{Icon|3}} {{Icon|VC}} | command = IS_CAR_IN_MISSION_GARAGE | description = Checks if a vehicle has been dropped off in the garage | syntax1...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

GTA III Vice City IS_CAR_IN_MISSION_GARAGE


Description
Checks if a vehicle has been dropped off in the garage
Syntax
021C:   car_inside_garage [garage handle]
Parameter
[garage handle]
The handle of the garage

This conditional opcode returns true if a vehicle has been dropped off in the garage. The command name is misleading; it does not simply check if a vehicle is in the garage. A vehicle is considered dropped off if the garage is of type 1, 14, or 21; has targeted the vehicle; the vehicle is in the garage; and the garage door has closed itself. Affecting the state of the garage afterwards (e.g. opening the garage) causes the garage to forget the drop off.

Keywords

check, car, vehicle, inside, mission, garage, dropped, off