native

find_ent_by_tname

Syntax

native find_ent_by_tname(iIndex, const szClass[]);

Description

Searches entities in the world, starting at a specified index and matching by
targetname.

Parameters

iIndex Entity index to start from
szClass Targetname to match

Return

Entity index if an entity was found, 0 otherwise