GetClientsInRange Function

Find clients that are potentially in range of a position.

int GetClientsInRange(const float origin[3], ClientRangeType rangeType, int[] clients, int size)

Parameters

const float[3] origin

Coordinates from which to test range.

ClientRangeType rangeType

Range type to use for filtering clients.

int[] clients

Array to which found client indexes will be written.

int size

Maximum size of clients array.

Return Value

Number of client indexes written to clients array.