_COUNT_PEDS_AWARE_OF_EVENT
Only used in SP Scripts counts how many peds that the ADD_SHOCKING_EVENT_FOR_ENTITY were add to based on position and radius, p0 is handleId from ADD_SHOCKING_EVENT_FOR_ENTITY p3 is a collection of entities where max is 15 (in source code), its using itemSet to get them from a volume this count seems to be used to add a task reactions etc to these peds
PEDBuild 1207
Signature
lua
CountPedsAwareOfEvent(0, 0.0, 0.0, 0.0, 0.0, entities)
-- returns intParameters
| Name | Type | Description |
|---|---|---|
| ScrHandle | — | |
| float | — | |
| float | — | |
| float | — | |
| float | — | |
| int* | — |
Usage
lua
CountPedsAwareOfEvent(0, 0.0, 0.0, 0.0, 0.0, entities)Generated from the native name, hash, and parameter list. Add a real example.
Details
- Hash
- Source
- VORPCORE/RDR3natives
Source: VORPCORE/RDR3natives
