[This is preliminary documentation and is subject to change.]
Gets an enumerable collection of the
Peds currently in the game world.
Namespace:
Rage
Assembly:
RagePluginHook (in RagePluginHook.dll) Version: 0.0.0.0 (0.56.1131.11510)
public static IEnumerable<Ped> EnumeratePeds()
Public Shared Function EnumeratePeds As IEnumerable(Of Ped)
public:
static IEnumerable<Ped^>^ EnumeratePeds()
Return Value
Type:
IEnumerablePedAn enumerable collection of the
Peds currently in the game world.
Using this over
GetAllPeds can be faster because the iteration can be interrupted without retrieving all peds; however, if the collection is changed, enumeration may not continue.
This method only returns valid instances, so it is not necessary to validate the peds before calling their members, unless the fiber it was called on has yielded since the call.
Reference