Angles in GTA 2 Mission Scripts
You can specify the direction of any object, character or vehicle by using angles. You can do this when you declare them or if you create them during the game.
Nearly all objects use the first set of angles, below. Phones are unique and use the second set of angles.
Angles are all in normal degrees but you must not use the degree symbol (°) in your code.
North | ||||
---|---|---|---|---|
West | 225 | 180 | 135 | East |
270 | X | 090 | ||
315 | 000 | 045 | ||
South |
North | ||||
---|---|---|---|---|
West | 315 | 270 | 225 | East |
000 | X | 180 | ||
045 | 090 | 135 | ||
South |
(Originally written by Chris “Pyro” Hockley and formatted by Ben “Cerbera” Millard with full permission.)