Comp entity finder: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "{{point ent|comp_choreo_screenset|game=TeamSpen's Hammer Addons|internal=1}} It is a forked version of the entity from TeamSpen's Hammer Addons. It finds the closest entit...")
 
No edit summary
Line 1: Line 1:
{{point ent|comp_choreo_screenset|game=TeamSpen's Hammer Addons|internal=1}} It is a forked version of the entity from [[TeamSpen's Hammer Addons]]. It finds the closest entity of a given type, then outputs various values depending on the keyvalues set.
{{point ent|comp_choreo_screenset|game=TeamSpen's Hammer Addons|internal=1}} It is also available in {{P2CE}}. It finds the closest entity of a given type, then outputs various values depending on the keyvalues set.


==KeyValues==
==KeyValues==

Revision as of 12:52, 10 May 2021

Template:Point ent It is also available in Portal 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.

{{KV