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