This article relates to the game "Portal 2." Click here for more information.

Comp entity finder: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Minor error fix)
m (Not sure how necessary multipage is. I'll probably translate these pages into Finnish so I guess it's worth is given there's also no big downsides)
Tag: Replaced
Line 7: Line 7:
|in={{teamspen|4}}
|in={{teamspen|4}}
}}
}}
{{this is a|name=comp_entity_finder|game=Portal 2: Community Edition|e1}} It is also available in any game with  {{teamspen|4}} installed. It finds the closest entity of a given type, then outputs various values depending on the keyvalues set.
{{this is a|name=comp_entity_finder|game=Portal 2: Community Edition|e1}}  
 
{{Multipage}}
==KeyValues==
{{KV|Targetname|target_source|Fake targetname, used to determine how containing instances are configured.}}
{{KV|Target Classname|string|Classnames of the entity to find. Multiple classnames can be specified seperated by spaces.}}
{{KV|Search Radius|float|Radius to search inside, or 0 for infinite.}}
{{KV|Search Field Of View|float|The found entity must be within this many degrees of the direction of the finder.}}
{{KV|Search Direction|angle|If Search FOV is used, the direction to compare to.}}
{{KV|Reference Position|target_destination|If set, look for entities close to this entity instead of the comp_entity_finder.}}
{{KV|Search Blacklist|target_destination|If set, ignore entities matching this name.}}
{{KV|Teleport Target To Me|choices|Move the found entity to the location of this entity or that of the reference.}}
:*0: No
:*1: Yes
{{KV|Make Target Unique|choices|Append a numeric suffix to the target's name to make it unique.}}
:*0: No
:*1: Yes
{{KV|(1, 2, 3, 4) - Mode|choices|The (first, second, third, fourth) modification to perform. For Replace Outputs, outputs sent to a !name specified in Destination will be switched to point to the found entity.}}
{{note|Additional Keyvalues of these types can be added with SmartEdit off.}}
:*none: None
:*const2target: Constant -> Target Ent KV
:*const2known: Constant -> Known Ent KV
:*known2target: Known Ent KV -> Target Ent KV
:*target2known: Target Ent KV -> Known Ent KV
:*replacetarget: Replace Outputs
{{KV|(1, 2, 3, 4) - Known Entity|target_destination|The known entity to access.}}
{{KV|(1, 2, 3, 4) - Source|string|Constant value to use or keyvalue name to read from.}}
{{KV|(1, 2, 3, 4) - Destination|string|Keyvalue name to write to or !special name to replace.}}
 
==Outputs==
{{IO|OutName|Needed to allow Hammer to add outputs to this.}}
 
==See Also==
* [[TeamSpen's Hammer Addons]]

Revision as of 09:01, 19 December 2023

comp_entity_finder
Comp entity finder.png
TypeInternal Point entity
EngineSource Source
AvailabilityTeamSpen's Hammer Addons TeamSpen's Hammer Addons
 

comp_entity_finder is an e1 available in Portal 2: Community Edition Portal 2: Community Edition. Template:Multipage