Comp entity finder: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
Note:Additional Keyvalues of these types can be added with SmartEdit off.
		
	
 (badly moved multipage)  | 
				SirYodaJedi (talk | contribs)  No edit summary  | 
				||
| Line 8: | Line 8: | ||
|in={{teamspen|4}}  | |in={{teamspen|4}}  | ||
}}  | }}  | ||
{{this is a|point entity|internal=1|name=comp_entity_finder|game=Portal 2: Community Edition}}    | {{this is a|point entity|internal=1|name=comp_entity_finder|game=Portal 2: Community Edition|game1=TeamSpen's Hammer Addons}}    | ||
It finds the closest entity of a given type, then outputs various values depending on the keyvalues set.  | |||
==KeyValues==  | ==KeyValues==  | ||
Revision as of 11:40, 4 September 2024
| comp_entity_finder | |
|---|---|
![]()  | |
| Type | Internal Point entity | 
| Engine | |
| Availability | |
comp_entity_finder  is an  internal point entity  available in 
 Portal 2: Community Edition and 
 TeamSpen's Hammer Addons. 
It finds the closest entity of a given type, then outputs various values depending on the keyvalues set.
KeyValues
- Targetname ([todo internal name (i)]) <string>
 - Fake targetname, used to determine how containing instances are configured.
 
- Target Classname ([todo internal name (i)]) <string>
 - Classnames of the entity to find. Multiple classnames can be specified seperated by spaces.
 
- 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
 
 
- Make Target Unique ([todo internal name (i)]) <choices>
 - Append a numeric suffix to the target's name to make it unique.
- 0: No
 - 1: Yes
 
 
- (1, 2, 3, 4) - Mode ([todo internal name (i)]) <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.
 
- 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 ([todo internal name (i)]) <targetname>
 - The known entity to access.
 
- (1, 2, 3, 4) - Source ([todo internal name (i)]) <string>
 - Constant value to use or keyvalue name to read from.
 
- (1, 2, 3, 4) - Destination ([todo internal name (i)]) <string>
 - Keyvalue name to write to or !special name to replace.
 
Outputs
- OutName
 - Needed to allow Hammer to add outputs to this.
 
See also
Categories: 
- Portal 2
 - Portal 2: Community Edition
 - Internal entities
 - Point Entities
 - Point entities
 - Internal Portal 2: Community Edition entities
 - Portal 2: Community Edition entities
 - Portal 2: Community Edition point entities
 - Internal TeamSpen's Hammer Addons entities
 - TeamSpen's Hammer Addons entities
 - TeamSpen's Hammer Addons point entities
 
