Comp entity finder

From Valve Developer Community
Revision as of 12:56, 10 May 2021 by Kittymatthew (talk | contribs)
Jump to navigation Jump to search

Template:Point ent It is also available in Portal 2: Community EditionPortal 2: Community Edition. It finds the closest entity of a given type, then outputs various values depending on the keyvalues set.

KeyValues

Target Classname ([todo internal name (i)]) <string>
Classnames of the entity to find. Multiple classnames can be specified seperated by spaces.
Search Radius ([todo internal name (i)]) <float>
Radius to search inside, or 0 for infinite.
Search Field Of View ([todo internal name (i)]) <float>
The found entity must be within this many degrees of the direction of the finder.
Search Direction ([todo internal name (i)]) <angle>
If Search FOV is used, the direction to compare to.
Reference Position ([todo internal name (i)]) <targetname>
If set, look for entities close to this entity instead of the comp_entity_finder.
Search Blacklist ([todo internal name (i)]) <targetname>
If set, ignore entities matching this name.
Teleport Target To Me ([todo internal name (i)]) <choices>
Move the found entity to the location of this entity or that of the reference.
  • 0 : No
  • 1 : Yes