Wikia

GTA Wiki

GRGE

Talk0
9,366pages on
this wiki
Revision as of 01:29, September 21, 2010 by A-Dust (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
GRGE (IPL section)
Supported games:GTA SA, GTA LCS, GTA VCS
Short description:Creates a garage
IPL Sections:
AUZOCARSCULLENEXGRGEINST
JUMPMULTOCCLPATHPICKTCYC

GRGE is one of the plain-text IPL sections, introduced with San Andreas. It replaces the previously used opcodes 0219, 03BB and 057A. It creates an invisible cube which interacts as a garage. Each garage can be used differently, for example by the script.

San Andreas Format

The format itself is easy, but understanding it seems hard. However the position values are pretty flexible and you can describe one garage in multiple ways.

PosX, PosY, PosZ, LineX, LineY, CubeX, CubeY, CubeZ, DoorType, GarageType, Name
Identifier Description
PosX, PosY, PosZ
A coordinate of one of the corner marks
LineX, LineY
Those values are added to the first position values. They define one edge of the box
CubeX, CubeY, CubeZ
Another world coordinate. Together with the abstract line created with the first 5 coordinates this forms a cube in the world.
DoorType
The type of the door
GarageType
The type of the garage[1]
Name
A string which is used to manipulate the garages behaviour through the main.scm[2]

Types of doors

Flag Description
1 door opens up and out, camera remotely follows player
2 door opens straight up, camera remotely follows player
3 door opens up and in, camera remotely follows player
4 door opens straight up, camera follows player
5 door opens up and out, camera follows player
6 door opens straight up, camera follows player
7 door opens up and in, camera follows player

The garage door only opens if the IDE flag value of the door is 2048 and the door is defined in the object.dat file.

Notes

Garage doors are very important for the camera rotation. They control how the camera moves after you have entered a garage. If your camera moves wrong, then simply rotate the pivot of your garage door, map the new one and rotate it until it fits with the rotation you want. Then test if the camera moves correctly in-game.

If you have not mapped a garage door the camera will move to the west, which corresponds to a garage door rotation of 0 degrees around the z axis.

See also


Copyright small

This page is licensed under the GNU Free Documentation Licence. This page has a separate license to the CC-BY-SA that applies to most of GTA Wiki.

The full text of the GNU FDL v1.2 is here. Click the "History" button to see the full list of authors. See GTA Wiki:Copyright for more detail on our copyright policy.

Around Wikia's network

Random Wiki