Difference between revisions of "024A"
Jump to navigation
Jump to search
(page updates) |
|||
Line 2: | Line 2: | ||
| games = {{Icon|3}} {{Icon|VC}} | | games = {{Icon|3}} {{Icon|VC}} | ||
| command = GRAB_PHONE | | command = GRAB_PHONE | ||
− | | description = Gets a payphone at the coordinates point | + | | description = Gets a [[payphone]] at the coordinates point |
| syntax1 = 024A: [''var''] = get_phone_at [''flt1''] [''flt2''] | | syntax1 = 024A: [''var''] = get_phone_at [''flt1''] [''flt2''] | ||
| p1t = [''var''] | | p1t = [''var''] | ||
Line 12: | Line 12: | ||
}} | }} | ||
− | 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 | + | This opcode gets a payphone object with the [[model]] name <code>phonebooth1</code> (ID 341) placed through the [[IPL]] file 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 need to be accurate but its distance from the payphone must be within 100 units or else the game can crash. |
== Keywords == | == Keywords == | ||
grab, get, create, pay, phone, payphone | grab, get, create, pay, phone, payphone |
Revision as of 15:06, 23 January 2016
- 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 object with the model name phonebooth1
(ID 341) placed through the IPL file 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 need to be accurate but its distance from the payphone must be within 100 units or else the game can crash.
Keywords
grab, get, create, pay, phone, payphone