TR_EnumerateEntitiesSphere

Last Updated2020-02-27
Created At2020-02-27

Enumerates over entities in a sphere.

native void TR_EnumerateEntitiesSphere(const float pos[3], float radius, int mask, TraceEntityEnumerator enumerator, any data = 0)

Parameters

const float[3] pos
Starting position of the ray.
float radius
Radius of the ray.
int mask
Mask to use for the trace. See PARTITION_* flags.
Function to use as enumerator. For each entity found along the ray, this function is called.
any data
Arbitrary data value to pass through to the enumerator.

Return Value

void