PedGetNearbyPeds Method

RAGE Plugin Hook Documentation

[This is preliminary documentation and is subject to change.]

Gets Peds near this Ped.

Namespace:  Rage
Assembly:  RagePluginHook (in RagePluginHook.dll) Version: 0.0.0.0 (0.56.1131.11510)
Syntax

public Ped[] GetNearbyPeds(
	int maximumCount
)

Parameters

maximumCount
Type: SystemInt32
The maximum number of nearby Peds to get. Must be between 1 and 16.

Return Value

Type: Ped
An array of type Ped containing the nearby Peds.
Remarks

Several times a second, the game will collect Peds and Vehicle that are near a Ped. This method retrieves that list, and thus is faster than for example World.GetAllPeds().
See Also

Reference