Difference between revisions of "024A"

From GTAMods Wiki
Jump to navigation Jump to search
(created article)
 
m
Line 1: Line 1:
 
{{OpCode
 
{{OpCode
 
| ini        = 024A=3,%3d% %1d% %2d%
 
| ini        = 024A=3,%3d% %1d% %2d%
| description = Sets the payphone as active
+
| description = Gets a payphone at a location
 
| p1          = X-coordinate
 
| p1          = X-coordinate
 
| p2          = Y-coordinate
 
| p2          = Y-coordinate
Line 7: Line 7:
 
| game        = [[GTA 3]], [[Vice City]]
 
| game        = [[GTA 3]], [[Vice City]]
 
}}
 
}}
This opcode grabs 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. 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.
 
[[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 07:21, 21 August 2009

{{{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. 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.

Sanny Builder example:

024A: $292 = create_phone_at 36.90385 -1023.3