021C

From GTAModding
Jump to: navigation, 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