Point entity finder

From Valve Developer Community
Revision as of 19:42, 28 July 2017 by Kidnation (talk | contribs) (Replaced OutEntity with OnFoundEntity, and added a description to the Search Method keyvalue, and a few other minor things.)
Jump to navigation Jump to search

Template:Base point

Entity description

An entity that will find an entity and pass it along as the !caller with the OnFoundEntity output.

Keyvalues

Filter Name ([todo internal name (i)]) <filter>
Filter to use to narrow set of find-able entities. See filter_activator_name for more explanation.
Reference Entity ([todo internal name (i)]) <targetname>
Name of the entity to use when evaluating criteria. If left blank, the entity will use itself.
Search Method ([todo internal name (i)]) <choices>
After filtering down the entities to find, if there are multiple entities that it has found, this determines which entity gets sent as the !caller.
  • 0 : Nearest
  • 1 : Farthest
  • 2 : Random
Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Inputs

FindEntity
Find an entity that meets the specified criteria. Will fire OnFoundEntity output and pass the entity as the !caller.


Outputs

OnFoundEntity
Fired when FindEntity input was sent and a entity was found. Passes the found entity as the !caller.