Difference between revisions of "02DD"
Jump to navigation
Jump to search
(all zones are accepted) |
|||
Line 1: | Line 1: | ||
{{OpCode | {{OpCode | ||
− | | ini = 02DD=5,%5d% = | + | | ini = 02DD=5,%5d% = %1s% %2h% %3h% %4h% |
− | | description = Gets a ped | + | | description = Gets a ped of a specific [[pedtype]] in the specified zone. |
− | | p1 = | + | | p1 = Zone name defined in the [[ZON]] section of the [[IPL]] |
− | | p2 = | + | | p2 = Boolean (0/1) |
| p3 = Boolean (0/1) | | p3 = Boolean (0/1) | ||
| p4 = Boolean (0/1) | | p4 = Boolean (0/1) | ||
− | | p5 = | + | | 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. | ||
− | + | ==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 | ||
− | <source lang="scm">02DD: | ||
==Keywords== | ==Keywords== | ||
− | + | 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