Skip to main content

trigger_sensor

trigger_sensor icon
Point entityPorted from Featureful

A trigger_sensor finds the entities within a radius when you trigger it, and fires its target for each of them, or only for the closest or the farthest one, with the found entity as !activator.

Attributes​

The entity also has these common keys:

KeyDescriptionDefault
Radiusradius

Sets how far around its center the sensor looks, in units.

Default 192
Targettarget

Fires for each entity the sensor finds, or only for the closest or the farthest, with that entity as the activator.

Source Positionposition

Sets the center of the search as a locus position.

If you leave this key empty, the center is this entity.

Line is blocked byline_blocked

Sets what blocks the line from the center to an entity. The sensor doesn't find an entity if its line is blocked, and "Nothing" means no line check.

  • Nothing (0)
  • Walls (1)
  • Walls & Glass (2)
  • Walls & Monsters (3)
  • Walls, Monsters & Glass (4)
Default Walls & Glass (2)
Trace line totrace_to

Sets the point on the entity that the line goes to. The sensor also measures the distance to this point.

  • Origin (0)
  • Center (1)
  • Eyes (2)
  • Body (3)
Default Center (1)
Fire trigger forfire_trigger_policy

Sets whether the target fires for every found entity, or only for the one closest to or farthest from the center.

  • Every entity (0)
  • Closest entity (1)
  • Farthest entity (2)
Default Every entity (0)
Entity is alivealive_filter

Sets whether it only finds living or only dead entities.

  • Dead only (never players) (-1)
  • No filter (0)
  • Alive only (1)
Default No filter (0)
Entity is damageabletakedamage_filter

Sets whether the found entities must be able to take damage. "Yes, aimable" only finds entities that monsters aim at, such as monsters and players.

  • No (-1)
  • No filter (0)
  • Yes (1)
  • Yes, aimable (monsters) (2)
Default No filter (0)
Trigger Mastersensed_master

Names a master that must be on for the found entity, with that entity as the activator.

Required classnamesensed_classname

Only finds entities of this class.

Act as Classifyclassify

Sets the monster class that the sensor uses for My relationship to entity. See Monster classes for how each class sees the others.

The 14 choices
  • None (0)
  • Machine (1)
  • Player (2)
  • Human passive (3)
  • Human military (4)
  • Alien military (5)
  • Alien passive (6)
  • Alien monster (7)
  • Alien prey (8)
  • Alien predator (9)
  • Insect (10)
  • Player ally (11)
  • Player bioweapon (12)
  • Alien bioweapon (13)
Default None (0)
My relationship to entityrelationship_filter

Only finds entities that a monster of the Act as Classify class sees as neutral, an enemy or an ally, as you choose. "Enemy" also finds an entity that sees that class as its enemy.

  • Any (0)
  • Neutral (1)
  • Enemy (2)
  • Enemy or neutral (3)
  • Ally (4)
  • Ally or neutral (5)
Default Any (0)

Notes​

  • Each trigger searches once, and the target gets the use type Toggle
  • It only finds alive players, so "Dead only" finds no players
  • "Alive only" skips monsters that are dying, and it always skips entities that are being removed
  • A target that triggers the sensor while it fires is ignored

See also​

Changes since 1.38​

  • trigger_sensor is new