Difference between revisions of "GRGE"
(→Notes) |
(IPL article is linked already (twice), do we need to duplicate it in the See also section?) |
||
Line 1: | Line 1: | ||
{{IplSection | {{IplSection | ||
− | | game = [[GTA SA]] | + | | game = [[GTA SA]], [[GTA LCS]], [[GTA VCS]] <!--- GTA IV?! well at least it DOES check for this section to exist ---> |
| description = Creates a garage | | description = Creates a garage | ||
}} | }} | ||
− | '''GRGE''' is one of the plain-text [[IPL]] sections, introduced with [[ | + | '''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 == | == San Andreas Format == | ||
− | |||
The format itself is easy, but understanding it seems hard. However the position values are pretty flexible and you can descripe one garage in multiple ways. | The format itself is easy, but understanding it seems hard. However the position values are pretty flexible and you can descripe one garage in multiple ways. | ||
Line 21: | Line 20: | ||
|<center>CubeX, CubeY, CubeZ</center>||Another world coordinate. Together with the abstract line created with the first 5 coordinates this forms a cube in the world. | |<center>CubeX, CubeY, CubeZ</center>||Another world coordinate. Together with the abstract line created with the first 5 coordinates this forms a cube in the world. | ||
|- | |- | ||
− | |<center>DoorType</center>||The type of the door {{ref|1}} | + | |<center>DoorType</center>||The type of the door{{ref|1}} |
|- | |- | ||
− | |<center>GarageType</center>||The type of the door {{ref|2}} | + | |<center>GarageType</center>||The type of the door{{ref|2}} |
|- | |- | ||
− | |<center>Name</center>||A string which is used to manipulate the garages behaviour through <code>[[main.scm]]</code> {{ref|3}} | + | |<center>Name</center>||A string which is used to manipulate the garages behaviour through <code>[[main.scm]]</code>{{ref|3}} |
|- | |- | ||
|} | |} | ||
=== Notes === | === 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 untill it fits with the rotation you want. Then test if the camera moves correctly ingame. | 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 untill it fits with the rotation you want. Then test if the camera moves correctly ingame. | ||
Line 39: | Line 37: | ||
* {{note|2}} [[Garage#San_Andreas|Garage types (SA)]] | * {{note|2}} [[Garage#San_Andreas|Garage types (SA)]] | ||
* {{note|3}} [[Garage#San_Andreas_2|List of all default garage names (SA)]] | * {{note|3}} [[Garage#San_Andreas_2|List of all default garage names (SA)]] | ||
− | |||
== External Link == | == External Link == | ||
Line 46: | Line 43: | ||
{{SA-navi}} | {{SA-navi}} | ||
− | + | [[Category:GTA_LCS]][[Category:GTA_VCS]] |
Revision as of 16:29, 22 March 2009
Short description: | Creates a garage | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Supported games: | GTA SA, GTA LCS, GTA VCS | |||||||||||||||||||||
IPL Sections:
|
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 descripe one garage in multiple ways.
PosX, PosY, PosZ, LineX, LineY, CubeX, CubeY, CubeZ, DoorType, GarageType, Name
Identifier | Description |
---|---|
A coordinate of one of the corner marks | |
Those values are added to the first position values. They define one edge of the box | |
Another world coordinate. Together with the abstract line created with the first 5 coordinates this forms a cube in the world. | |
The type of the door[1] | |
The type of the door[2] | |
A string which is used to manipulate the garages behaviour through main.scm [3]
|
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 untill it fits with the rotation you want. Then test if the camera moves correctly ingame.
If you have not mapped a garage door the camera will move to the west, which corresponds to a garage door rotation of 0 dagrees around the z axis.
See also
External Link
- GTAForums: IPL documentation topic