Difference between revisions of "024A"

From GTAMods Wiki
Jump to navigation Jump to search
m
Line 4: Line 4:
 
| p1          = X-coordinate
 
| p1          = X-coordinate
 
| p2          = Y-coordinate
 
| p2          = Y-coordinate
| p3          = Phone handle
+
| p3          = Phone ID
 
| game        = [[GTA 3]], [[Vice City]]
 
| game        = [[GTA 3]], [[Vice City]]
 
}}
 
}}
This opcode gets a payphone (ID 341) at or near the coordinate and assigns it to a handle. It can only be used with opcodes [[024E]] and [[0405]]. 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.
+
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>
 
[[Sanny Builder]] example:<source lang="scm">024A: $292 = create_phone_at 36.90385 -1023.3</source>

Revision as of 16:57, 5 March 2010

{{{games}}}


Description
Gets a payphone at a location
Syntax
{{{syntax1}}}
Parameter

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:

024A: $292 = create_phone_at 36.90385 -1023.3