Point entity finder

From Valve Developer Community
Revision as of 13:37, 17 May 2021 by Orinuse (talk | contribs) (Changed format of some sections ;Removed obsolete templates (this is a neat entity))
Jump to navigation Jump to search

Template:Base point When given theFindEntityinput, it finds an appropriate entity based on the given criterias, and pass the result as the!callerin theOnFoundEntityoutput.

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 for search method distance comparisons. 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 valid candidates, this determines which entity gets sent under the!callername.
  • 0 : Nearest
  • 1 : Farthest
  • 2 : Random


Inputs

FindEntity
Start a search on an entity that meets the specified criteria. Fires theOnFoundEntityoutput and pass the found entity under the!callername.


Outputs

OnFoundEntity
When a search from theFindEntityinput found a valid entity. The found entity is passed under the!callername.