Moderator elections are being held. See Valve Developer Community:Moderator elections for more details.
Users who would like to run for moderator must be autoconfirmed and have at least 100 edits. Users can check their own edit count at Special:Preferences.
Users who would like to run for moderator must be autoconfirmed and have at least 100 edits. Users can check their own edit count at Special:Preferences.
comp_entity_finder
comp_entity_finder | |
---|---|
![]() | |
Type | Internal Point entity |
Engine | ![]() |
Availability | ![]() |
comp_entity_finder
is a internal point entity available in Portal 2: Community Edition.
It is also available in any game with TeamSpen's Hammer Addons installed. It finds the closest entity of a given type, then outputs various values depending on the keyvalues set.
KeyValues
- Targetname
(???)
<targetname> - Fake targetname, used to determine how containing instances are configured.
- Target Classname
(???)
<string> - Classnames of the entity to find. Multiple classnames can be specified seperated by spaces.
- Search Radius
(???)
<float> - Radius to search inside, or 0 for infinite.
- Search Field Of View
(???)
<float> - The found entity must be within this many degrees of the direction of the finder.
- Search Direction
(???)
<angle> - If Search FOV is used, the direction to compare to.
- Reference Position
(???)
<targetname> - If set, look for entities close to this entity instead of the comp_entity_finder.
- Search Blacklist
(???)
<targetname> - If set, ignore entities matching this name.
- Teleport Target To Me
(???)
<choices> - Move the found entity to the location of this entity or that of the reference.
- 0: No
- 1: Yes
- Make Target Unique
(???)
<choices> - Append a numeric suffix to the target's name to make it unique.
- 0: No
- 1: Yes
- (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.png](/w/images/thumb/c/cc/Note.png/10px-Note.png)
- 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
- (1, 2, 3, 4) - Known Entity
(???)
<targetname> - The known entity to access.
- (1, 2, 3, 4) - Source
(???)
<string> - Constant value to use or keyvalue name to read from.
- (1, 2, 3, 4) - Destination
(???)
<string> - Keyvalue name to write to or !special name to replace.
Outputs
OutName
- Needed to allow Hammer to add outputs to this.