IsValidEntity Function

Returns whether or not an entity is valid. Returns false if there is no matching CBaseEntity for this entity index.

bool IsValidEntity(int entity)

Parameters

int entity

Index of the entity.

Return Value

True if valid, false otherwise.