Difference between revisions of "024A"

From GTAMods Wiki
Jump to navigation Jump to search
m
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{OpCode
 
{{OpCode
| ini        = 024A=3,%3d% %1d% %2d%
+
| games      = {{Icon|3}} {{Icon|VC}}
| description = Gets a payphone at a location
+
| command    = GRAB_PHONE
| p1          = X-coordinate
+
| description = Gets a [[payphone]] at the coordinates point
| p2          = Y-coordinate
+
| syntax1    = 024A: [''var''] = get_phone_at [''flt1''] [''flt2'']
| p3          = Phone ID
+
| p1t        = [''var'']
| game        = [[GTA 3]], [[Vice City]]
+
| p1d        = Variable to store the handle of the phone
 +
| p2t        = [''flt1'']
 +
| p2d        = X-coordinate
 +
| p3t        = [''flt2'']
 +
| p3d        = Y-coordinate
 
}}
 
}}
This opcode gets a payphone (ID 341) at or near the coordinate and assigns it to a handle. Up to 49 phones can be stored in the game. This opcode cannot create a payphone object. The coordinates have to be close to a payphone or else the game can crash. Note that the third parameter is placed in the beginning instead of at the end.
+
 
[[Sanny Builder]] example:<source lang="scm">024A: $292 = create_phone_at 36.90385 -1023.3</source>
+
This opcode gets a payphone object [[MatchModelString|matching the model name <code>phonebooth1</code>]], which can be placed into the world 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

Latest revision as of 11:30, 26 November 2016

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 object matching the model name phonebooth1, which can be placed into the world 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