Difference between revisions of "02DD"

From GTAMods Wiki
Jump to navigation Jump to search
(all zones are accepted)
Line 1: Line 1:
 
{{OpCode
 
{{OpCode
| ini        = 02DD=5,%5d% = %1s% %2h% %3h% %4h%
+
| ini        = 02DD=5,%5d% = %1s% %2h% %3h% %4h%
| description = Gets a ped in a specific zone with the selected properties.
+
| description = Gets a ped of a specific [[pedtype]] in the specified zone.
| p1          = Ped handle
+
| p1          = Zone name defined in the [[ZON]] section of the [[IPL]]
| p2          = Zone name defined in <code>info.zon</code> file.
+
| p2          = Boolean (0/1)
 
| p3          = Boolean (0/1)
 
| p3          = Boolean (0/1)
 
| p4          = Boolean (0/1)
 
| p4          = Boolean (0/1)
| p5          = Boolean (0/1)
+
| p5          = Character handle
 
| game        = [[GTA 3]], [[Vice City]], [[San Andreas]]
 
| game        = [[GTA 3]], [[Vice City]], [[San Andreas]]
 
}}
 
}}
 +
This opcode grabs a random ped of a specific pedtype within the specified zone.
  
This opcode sets a ped in a specific zone with the selected properties.
+
==Sanny Builder example==
 
+
<source lang="scm">02DD: 0@ = get_random_ped_in_zone 'SAN_AND' with_pedtype_civilian 1 gang 0 criminal/prostitute 1</source>
==Sanny Builder Example==
 
<source lang="scm">02DD: 88@ = get_random_ped_in_zone 'SAN_AND' with_pedtype_civilian 1 gang 0 criminal/prostitute 1</source>
 
  
 
==Keywords==
 
==Keywords==
heli, simulate, crash, landing
+
get, random, ped, actor, character, zone, area

Revision as of 15:12, 19 December 2010

{{{games}}}


Description
Gets a ped of a specific pedtype in the specified zone.
Syntax
{{{syntax1}}}
Parameter

This opcode grabs a random ped of a specific pedtype within the specified zone.

Sanny Builder example

02DD: 0@ = get_random_ped_in_zone 'SAN_AND' with_pedtype_civilian 1 gang 0 criminal/prostitute 1

Keywords

get, random, ped, actor, character, zone, area