024A

From GTAMods Wiki
Revision as of 05:14, 17 January 2016 by Spaceeinstein (talk | contribs) (page updates)
Jump to navigation Jump to search

GTA III Vice City GRAB_PHONE


Description
Gets a payphone at the coordinates point
Syntax
024A: [var] = get_phone_at [flt1] [flt2]
Parameter
[var]
Variable to store the handle of the phone
[flt1]
X-coordinate
[flt2]
Y-coordinate

This opcode gets a payphone (ID 341) closest to the coordinates point and assigns it a handle. Up to 49 phones can be stored in the game. If the payphone is already grabbed, it grabs the next closest payphone. This opcode itself does not create a payphone object. The coordinates point does not have to be exact but it must to be close to a payphone or else the game can crash.

Keywords

grab, get, create, pay, phone, payphone