Difference between revisions of "03B0"

From GTAMods Wiki
Jump to navigation Jump to search
m
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{OpCode
 
{{OpCode
| ini        = 03B0=1,  %1d%
+
| games      = {{Icon|t}}
| description = Checks if the [[garage]] is opened
+
| command    = IS_GARAGE_OPEN
| p1          = [[Garage#List_of_Garages|Garage ID]]
+
| description = Checks if the [[garage]] is open
| game        = [[GTA 3]], [[Vice City]], [[San Andreas]]
+
| syntax1    = {{Icon|3}} {{Icon|VC}} 03B0:   garage [''garage handle''] door_open
 +
| syntax2    = {{Icon|SA}} 03B0:   garage '[''string'']' door_open
 +
| p1t        = [''garage handle'']
 +
| p1d        = The [[Garage#List of Garages|handle of the garage]]
 +
| p2t        = [''string'']
 +
| p2d        = The [[Garage#San Andreas 2|name of the garage]]
 
| native      = [[IS_GARAGE_OPEN]]
 
| native      = [[IS_GARAGE_OPEN]]
 
}}
 
}}
This checks if the garage is opened. It does not matter if the door exists. For a save garage, it is opened if the vehicles inside the garage are spawned.
 
  
==Keywords==
+
This conditional opcode returns true if the state of the garage is open. This happens regardless of a physical door. The states it detects are 1 (fully opened) and 4 (fully opened with vehicle serviced by bomb or spray shops).
check, garage, door, open
+
 
 +
== Keywords ==
 +
check, garage, door, open, opened

Latest revision as of 07:24, 7 November 2016

GTA III Vice City San Andreas IS_GARAGE_OPEN


Description
Checks if the garage is open
Syntax
GTA III Vice City 03B0:   garage [garage handle] door_open
San Andreas 03B0:   garage '[string]' door_open
Parameter
[garage handle]
The handle of the garage
[string]
The name of the garage
Native analog
IS_GARAGE_OPEN

This conditional opcode returns true if the state of the garage is open. This happens regardless of a physical door. The states it detects are 1 (fully opened) and 4 (fully opened with vehicle serviced by bomb or spray shops).

Keywords

check, garage, door, open, opened