/** * Sends the current TE to all clients that are in * visible or audible range of the origin. * @note See TE_Start(). * @note See GetClientsInRange() * * @param origin Coordinates from which to test range. * @param rangeType Range type to use for filtering clients. * @param delay Delay in seconds to send the TE. */ public static void TE_SendToAllInRange(float[] /*3*/ origin, ClientRangeType rangeType, float delay = 0.0f) { int[] clients = new int[MaxClients]; int total = GetClientsInRange(origin, rangeType, clients, MaxClients); TE_Send(clients, total, delay); }
/** * Find clients that are potentially in range of a position. * * @param origin Coordinates from which to test range. * @param rangeType Range type to use for filtering clients. * @param clients Array to which found client indexes will be written. * @param size Maximum size of clients array. * @return Number of client indexes written to clients array. */ public static int GetClientsInRange(float[] origin, ClientRangeType rangeType, int[] clients, int size) { throw new NotImplementedException(); }