is_valid_ent
- Синтаксис
-
native is_valid_ent(iIndex);
Переменная | Описание |
---|---|
iIndex |
Entity index |
- Описание
- Returns if an entity index is valid (as required by other engine natives).
- Пометка
-
Engine considers an entity index valid if it is in the range between 1 and the maximum number of entities possible. The index also has to point to an existing entity or, if it is a client index, the client has to be connected.
- Возвращает
- 1 if entity is valid, 0 otherwise