Hosting and domain costs until October 2024 have been generously sponsored by dumptruck_ds. Thank you!

find

From Quake Wiki

Revision as of 02:54, 25 March 2013 by Necros (talk | contribs) (Created page with "====Syntax:==== <code>entity find(entity start, .string fld, string match)</code> Returns an entity who's entity variable matches <code>match</code> by searching through the ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Syntax:

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:

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:

Returns an entity that matches the criteria