Difference between revisions of "021B"

From GTAMods Wiki
Jump to navigation Jump to search
(New page: {{OpCode | ini = 021B=2,%1d% %2d% | description = Sets the garage to accept the car | p1 = Garage ID | p2 = Existing vehicle handle | g...)
 
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{OpCode
 
{{OpCode
| ini        = 021B=2,%1d% %2d%
+
| games      = {{Icon|t}}
| description = Sets the garage to accept the car
+
| command    = SET_TARGET_CAR_FOR_MISSION_GARAGE
| p1          = [[Garage#List_of_Garages|Garage ID]]
+
| description = Sets the [[garage]] to accept the specified vehicle
| p2          = Existing vehicle handle
+
| syntax1    = 021B: set_garage [''garage handle''] to_accept_car [''car handle'']
| game        = [[GTA 3]], [[Vice City]], [[San Andreas]]
+
| p1t        = [''garage handle'']
 +
| p1d        = The [[Garage#List of Garages|handle of the garage]]
 +
| p2t        = [''car handle'']
 +
| p2d        = The handle of the vehicle, or ''-1'' for none
 
}}
 
}}
This opcode sets the garage to accept the car. Effects of this opcode depend on the type of the garage and are noticeable for a few of them, with each of them behaving differently.
 
  
*Type 14: The garage will open for your car. Once inside you will be frozen until the door closes. After a short time it opens back up. Once inside you can leave your car in it and walk out. It won't accept your car again if you manage to get it out and attempt to drive back in.
+
This opcode sets the garage to accept the specified vehicle. The effectiveness of this opcode depends on the [[Garage#Types of Garages|type of the garage]] and are noticeable for a few of them, with each of them behaving differently. For garage types 1, 14, and 21, the vehicle is considered [[021C|dropped off]] if the vehicle is in the garage and the garage door closed itself.
*Type 20: The garage will open for your car but it won't close by itself as long as the car is in the garage.
+
 
*Type 21: The garage will open for your car. Once inside you will be frozen until the door closes. The door stays closed. It won't accept your car again if you manage to get it out and attempt to drive back in.
+
== GTA III ==
*Type 23: The garage won't open for your car so you have to force it open. Once inside you can leave your car in it and walk out. You will be frozen as the door closes. It will accept your car again if you manage to get it out and attempt to drive back in.
+
{|class="wikitable center-col-1"
 +
!Type ||Description
 +
|-
 +
|1 ||The garage will open for your car. When the car is inside and you walk outside, the garage door will close and the car will disappear.
 +
|-
 +
|7 ||The garage won't open for your car so you have to force it open. Once inside you can leave your car in it and walk out. You will be frozen as the door closes. After the door closes, you are rewarded with $3. The car will disappear in the garage.
 +
|-
 +
|14 ||The garage will open for you car with a large radius of acceptance. Once stopped inside, the garage door will close and the player will be frozen. After a moment, the door will reopen. Driving away from the garage will close the garage and the garage will no longer accept the car.
 +
|-
 +
|20 ||The garage will open for your car but it won't close by itself as long as the car is in the garage.
 +
|-
 +
|21 ||The garage will open for you car. Once stopped inside, the garage door will close and the player will be frozen. After a moment, you are unfrozen but the garage door remains closed. The garage won't accept your car again if you manage to get it out and attempt to drive back in.
 +
|}
 +
 
 +
== Vice City ==
 +
{|class="wikitable center-col-1"
 +
!Type ||Description
 +
|-
 +
|1 ||The garage will open for your car. When the car is inside and you walk outside, the garage door will close and the car will disappear.
 +
|-
 +
|14 ||The garage will open for your car. Once inside you will be frozen until the door closes. After a short time it opens back up. Right after the door finishes opening, it will immediately close itself again and stays closed. It won't accept your car again if you manage to get it out and attempt to drive back in.
 +
|-
 +
|20 ||The garage will open for your car but it won't close by itself as long as the car is in the garage.
 +
|-
 +
|21 ||The garage will open for your car. Once inside you will be frozen until the door closes. The door stays closed. It won't accept your car again if you manage to get it out and attempt to drive back in.
 +
|-
 +
|23 ||The garage won't open for your car so you have to force it open. Once inside you can leave your car in it and walk out. You will be frozen as the door closes. It will accept your car again if you manage to get it out and attempt to drive back in.
 +
|}
 +
 
 +
== Keywords ==
 +
set, target, car, vehicle, accept, mission, garage

Latest revision as of 20:28, 18 January 2017

GTA III Vice City San Andreas SET_TARGET_CAR_FOR_MISSION_GARAGE


Description
Sets the garage to accept the specified vehicle
Syntax
021B: set_garage [garage handle] to_accept_car [car handle]
Parameter
[garage handle]
The handle of the garage
[car handle]
The handle of the vehicle, or -1 for none

This opcode sets the garage to accept the specified vehicle. The effectiveness of this opcode depends on the type of the garage and are noticeable for a few of them, with each of them behaving differently. For garage types 1, 14, and 21, the vehicle is considered dropped off if the vehicle is in the garage and the garage door closed itself.

GTA III

Type Description
1 The garage will open for your car. When the car is inside and you walk outside, the garage door will close and the car will disappear.
7 The garage won't open for your car so you have to force it open. Once inside you can leave your car in it and walk out. You will be frozen as the door closes. After the door closes, you are rewarded with $3. The car will disappear in the garage.
14 The garage will open for you car with a large radius of acceptance. Once stopped inside, the garage door will close and the player will be frozen. After a moment, the door will reopen. Driving away from the garage will close the garage and the garage will no longer accept the car.
20 The garage will open for your car but it won't close by itself as long as the car is in the garage.
21 The garage will open for you car. Once stopped inside, the garage door will close and the player will be frozen. After a moment, you are unfrozen but the garage door remains closed. The garage won't accept your car again if you manage to get it out and attempt to drive back in.

Vice City

Type Description
1 The garage will open for your car. When the car is inside and you walk outside, the garage door will close and the car will disappear.
14 The garage will open for your car. Once inside you will be frozen until the door closes. After a short time it opens back up. Right after the door finishes opening, it will immediately close itself again and stays closed. It won't accept your car again if you manage to get it out and attempt to drive back in.
20 The garage will open for your car but it won't close by itself as long as the car is in the garage.
21 The garage will open for your car. Once inside you will be frozen until the door closes. The door stays closed. It won't accept your car again if you manage to get it out and attempt to drive back in.
23 The garage won't open for your car so you have to force it open. Once inside you can leave your car in it and walk out. You will be frozen as the door closes. It will accept your car again if you manage to get it out and attempt to drive back in.

Keywords

set, target, car, vehicle, accept, mission, garage