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)
 
m (Move page script moved page Findchain to findchain: Fixing the case)
 
(No difference)

Latest revision as of 16:22, 29 March 2013

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;
}