find

From Quake Wiki

Syntax:[edit]

entity find(entity start, .string fld, string match)

Returns an entity who's entity variable matches match by searching through the edict list starting from start.

Parameters:[edit]

start - The entity to start searching from. Use world to start from the top of the list.
fld - The field to check for matches. Eg: .targetname
match - The values to check for.

Returns:[edit]

Returns an entity that matches the criteria