point_entity_finder

From Source Entities
Jump to navigation Jump to search

Code classes:

point_entity_finder is a point entity present in all games since L4d.pngLeft 4 Dead. It finds another entity using a set of rules.

Keyvalues[edit | edit source]

Filter Name (filtername) <filterclass>
A filter to use to narrow down which entities can be found.
Reference Entity (referencename) <target_destination>
When Search Method is Nearest or Farthest, an entity to measure distance from. If not specified, distance is measured from the point_entity_finder.
Search Method (Method) <choices>
If the finder finds multiple valid entities, how it should decide which one to target.
  • 0: Nearest
  • 1: Farthest
  • 2: Random

Inputs[edit | edit source]

FindEntity
Tells the finder to find an entity.

Outputs[edit | edit source]

OnFoundEntity
Fires when FindEntity is sent. !caller is the found entity.

See Also[edit | edit source]