Garage: Difference between revisions

210 bytes removed ,  21 July 2018
m
no edit summary
mNo edit summary
mNo edit summary
 
Line 1: Line 1:
:''For general information on garages, see [[garages]].
:''This article contains technical information for garages. For general information on garages, see [[garages]].''


A '''garage''' is an area in the game where your vehicles are saved. It can also be a [[Spray Shop|spray garage]], a [[8-Ball Autos|bomb shop]] garage, or just a regular garage that does not save anything. In [[Grand Theft Auto III]] and [[Grand Theft Auto: Vice City]], garages can only be created and controlled through the <code>main.scm</code>. In [[Grand Theft Auto: San Andreas]], garages can only be created through the [[GRGE]] section of the [[IPL]] file and controlled through the <code>main.scm</code>. You can duplicate most types of garages but you should not duplicate save garages. Each save garage saves specific vehicle(s) for that specific garage. Duplicating save garages can delete your saved vehicle(s).
A '''garage''' is an area in the game where your vehicles are saved. It can also be a [[Spray Shop|spray garage]], a [[8-Ball Autos|bomb shop]] garage, or just a regular garage that does not save anything. In [[Grand Theft Auto III]] and [[Grand Theft Auto: Vice City]], garages can only be created and controlled through the <code>main.scm</code>. In [[Grand Theft Auto: San Andreas]], garages can only be created through the [[GRGE]] section of the [[IPL]] file and controlled through the <code>main.scm</code>. You can duplicate most types of garages but you should not duplicate save garages. Each save garage saves specific vehicle(s) for that specific garage. Duplicating save garages can delete your saved vehicle(s).
Line 993: Line 993:
Through the script, opcodes can be used to interact and control the behavior of garages.
Through the script, opcodes can be used to interact and control the behavior of garages.
{|class="nowrap-col-2"
{|class="nowrap-col-2"
|0219 ||{{Icon-square|3}} {{Icon-square|vc}} ||creates a garage
|0219 ||{{Icon|3}} {{Icon|vc}} ||creates a garage
|-
|-
|021A ||{{Icon-square|3}} ||creates a garage with target model
|021A ||{{Icon|3}} ||creates a garage with target model
|-
|-
|021B ||{{Icon-square|t}} ||sets the garage to accept a specific vehicle
|021B ||{{Icon|t}} ||sets the garage to accept a specific vehicle
|-
|-
|021C ||{{Icon-square|3}} {{Icon-square|vc}} ||checks if a vehicle is in the garage
|021C ||{{Icon|3}} {{Icon|vc}} ||checks if a vehicle is in the garage
|-
|-
|0299 ||{{Icon-square|3}} {{Icon-square|sa}} ||activates the garage
|0299 ||{{Icon|3}} {{Icon|sa}} ||activates the garage
|-
|-
|02B9 ||{{Icon-square|3}} {{Icon-square|sa}} ||deactivates the garage
|02B9 ||{{Icon|3}} {{Icon|sa}} ||deactivates the garage
|-
|-
|02FA ||{{Icon-square|t}} ||changes the type of garage
|02FA ||{{Icon|t}} ||changes the type of garage
|-
|-
|0329 ||{{Icon-square|3}} {{Icon-square|vc}} ||checks if a respray at the garage has happened
|0329 ||{{Icon|3}} {{Icon|vc}} ||checks if a respray at the garage has happened
|-
|-
|0360 ||{{Icon-square|t}} ||opens the garage
|0360 ||{{Icon|t}} ||opens the garage
|-
|-
|0361 ||{{Icon-square|t}} ||closes the garage
|0361 ||{{Icon|t}} ||closes the garage
|-
|-
|03A5 ||{{Icon-square|3}} ||changes the type of garage and target model
|03A5 ||{{Icon|3}} ||changes the type of garage and target model
|-
|-
|03B0 ||{{Icon-square|t}} ||checks if the garage is opened
|03B0 ||{{Icon|t}} ||checks if the garage is opened
|-
|-
|03B1 ||{{Icon-square|t}} ||checks if the garage is closed
|03B1 ||{{Icon|t}} ||checks if the garage is closed
|-
|-
|03BB ||{{Icon-square|3}} {{Icon-square|vc}} ||sets the garage door to rotate
|03BB ||{{Icon|3}} {{Icon|vc}} ||sets the garage door to rotate
|-
|-
|03DA ||{{Icon-square|3}} {{Icon-square|vc}} ||disables special camera when in the garage
|03DA ||{{Icon|3}} {{Icon|vc}} ||disables special camera when in the garage
|-
|-
|0422 ||{{Icon-square|3}} ||checks if the garage contains the vehicle
|0422 ||{{Icon|3}} ||checks if the garage contains the vehicle
|-
|-
|057A ||style="text-align: center;" |{{Icon-square|vc}} ||sets the maximum number of vehicles for the save garage to open
|057A ||style="text-align: center;" |{{Icon|vc}} ||sets the maximum number of vehicles for the save garage to open
|-
|-
|0A14 ||style="text-align: right;" |{{Icon-square|sa}} ||disables spray shops
|0A14 ||style="text-align: right;" |{{Icon|sa}} ||disables spray shops
|}
|}


== Item placement ==
== Item placement ==
:''Main article: [[GRGE]]
:''Main article: [[GRGE]]
GTA San Andreas introduced the GRGE section in the [[IPL]] file. It replaces the previously used opcodes 0219, 03BB and 057A. It creates an invisible cube which interacts as a garage.
GTA San Andreas introduced the <code>grge</code> section in the [[IPL]] file. It replaces the previously used opcodes 0219, 03BB and 057A. It creates an invisible cube which interacts as a garage.


== Reference ==
== Reference ==
Line 1,039: Line 1,039:
{{fdl}}
{{fdl}}


{{modding}}
{{3-navi}}
{{VC-navi}}
[[Category:Map Formats]]
[[Category:Map Formats]]
[[Category:Mission Script]]
[[Category:Mission Script]]
[[Category:GTA III Modifications]]
[[Category:GTA Vice City]]
[[Category:GTA San Andreas]]
[[Category:Modifications]]
12,236

edits