Hosting and domain costs until October 2024 have been generously sponsored by dumptruck_ds. Thank you!
Difference between revisions of "findchain"
From Quake Wiki
(initial revision) |
(No difference)
|
Revision as of 01:15, 24 October 2009
entity findchain (.string fld, string match)
- fld = label of field to query
- match = value in field to match on
The functionality of find in the format of findradius - chains up matches into the .chain field of entities. Proper use would look something like:
local entity head; head = findchain(classname, "player"); while (head) { T_Damage(head,self,self,10); head = head.chain; }