Ped::getRandomPedAtCoord

From RAGE Multiplayer Wiki
Revision as of 20:14, 6 May 2017 by Marty uploader (talk | contribs) (yay)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Gets a random ped in the x/y/zRadius near the x/y/z coordinates passed.

Ped Types:
Any = -1
Player = 1
Male = 4
Female = 5
Cop = 6
Human = 26
SWAT = 27
Animal = 28
Army = 29

Syntax

ped.getRandomPedAtCoord(x, y, z, xRadius, yRadius, zRadius, pedType);

Required Arguments

  • x: float
  • y: float
  • z: float
  • xRadius: float
  • yRadius: float
  • zRadius: float
  • pedType: int

Return value

  • Ped handle or object

Example

todo

See also

Template:Ped function c