Point entity finder: Difference between revisions
Jump to navigation
Jump to search
SirYodaJedi (talk | contribs) |
(Also in Garry's Mod (circa 14 March 2025)) |
||
Line 1: | Line 1: | ||
{{CD|CPointEntityFinder|file1=point_entity_finder.cpp}} | {{CD|CPointEntityFinder|file1=point_entity_finder.cpp}} | ||
{{this is a|point entity|name=point_entity_finder|since=Left 4 Dead}} {{also|{{mapbase}}}} When given the <code>FindEntity</code> input, it finds an appropriate entity based on the given criteria, and pass the result as the {{ent|!caller}} in the <code>OnFoundEntity</code> output. | {{this is a|point entity|name=point_entity_finder|since=Left 4 Dead}} {{also|{{mapbase}}{{gmod}}}} When given the <code>FindEntity</code> input, it finds an appropriate entity based on the given criteria, and pass the result as the {{ent|!caller}} in the <code>OnFoundEntity</code> output. | ||
== Keyvalues == | == Keyvalues == |
Revision as of 09:09, 15 March 2025
![]() |
---|
CPointEntityFinder |
![]() |
point_entity_finder
is a point entity available in all Source games since
Left 4 Dead. (also in
) When given the
FindEntity
input, it finds an appropriate entity based on the given criteria, and pass the result as the !caller in the OnFoundEntity
output.
Keyvalues
- Filter Name (filtername) <filter>
- Filter to use to narrow set of find-able entities. See filter_activator_name for more explanation.
- Reference Entity (referencename) <targetname>
- Name of the entity to use for search method distance comparisons. If left blank, the entity will use itself.
- Search Method (Method) <choices>
- After filtering down the entities to find, if there are multiple valid candidates, this determines which entity gets sent under the !caller name.
- 0 : Nearest
- 1 : Farthest
- 2 : Random
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
Inputs
- FindEntity
- Start a search on an entity that meets the specified criteria. Fires the
OnFoundEntity
output and pass the found entity under the !caller name.
Outputs
- OnFoundEntity
- When a search from the
FindEntity
input found a valid entity. The found entity is passed under the !caller name.