find_sphere_class
- Синтаксис
-
native find_sphere_class(aroundent, const _lookforclassname[], Float:radius, entlist[], maxents, const Float:origin[3] = {0.0, 0.0, 0.0});
Переменная | Описание |
---|---|
aroundent |
Entity index to center sphere around, < 1 to use origin |
_lookforclassname |
Classname to match |
radius |
Sphere radius |
entlist |
Array to store entities in |
maxents |
Maximum size of array |
origin |
Center of sphere, used if aroundent < 1 |
- Описание
- Searches for entities inside a sphere around a specified entity or origin, matching by classname.
- Пометка
-
This native always starts searching from entity index 0, there is no way to specify the starting point. If the entlist array is not big enough to accomodate all entities, the results will be truncated.
- Возвращает
- Number of entities stored in entlist