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

Difference between revisions of "find"

From Quake Wiki

(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 ...")
(No difference)

Revision as of 02:54, 25 March 2013

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