Difference between revisions of "021B"

From GTAMods Wiki
Jump to navigation Jump to search
(added iii + using tables)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Icon|trilogy}}
+
{{OpCode
<hr />
+
| games      = {{Icon|t}}
'''Description'''
+
| command    = SET_TARGET_CAR_FOR_MISSION_GARAGE
: Sets the garage to accept the specified vehicle
+
| description = Sets the [[garage]] to accept the specified vehicle
'''Syntax'''
+
| syntax1    = 021B: set_garage [''garage handle''] to_accept_car [''car handle'']
: 021B: set_garage [''garage handle''] to_accept_car [''car handle'']
+
| p1t        = [''garage handle'']
'''Parameter'''
+
| p1d        = The [[Garage#List of Garages|handle of the garage]]
: [''garage handle'']
+
| p2t        = [''car handle'']
:: The [[Garage#List of Garages|handle of the garage]]
+
| p2d        = The handle of the vehicle, or ''-1'' for none
: [''car handle'']
+
}}
:: The handle of the vehicle
 
  
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.
+
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.
  
{| {{prettytable}}
+
== GTA III ==
| style="text-align:left" | {{Icon|3}}
+
{|class="wikitable center-col-1"
 +
!Type ||Description
 
|-
 
|-
| style="vertical-align:top" | 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.
+
|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.
 
|-
 
|-
| style="vertical-align:top" | 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.
+
|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.
 
|-
 
|-
| style="vertical-align:top" | 20 || The garage will open for your car but it won't close by itself as long as the car is 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.
 
|-
 
|-
| style="vertical-align:top" | 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.
+
|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.
 
|}
 
|}
  
{| {{prettytable}}
+
== Vice City ==
| style="text-align:left" | {{Icon|VC}}
+
{|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.
 
|-
 
|-
| style="vertical-align:top" | 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.
+
|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.
 
|-
 
|-
| style="vertical-align:top" | 20 || The garage will open for your car but it won't close by itself as long as the car is in the garage.
+
|20 ||The garage will open for your car but it won't close by itself as long as the car is in the garage.
 
|-
 
|-
| style="vertical-align:top" | 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.
+
|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.
 
|-
 
|-
| style="vertical-align:top" | 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.
+
|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.
 
|}
 
|}
  
[[Category:OpCodes]]
+
== 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