trigger_sensor

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:
- Naming and triggering: Name
radiusSets how far around its center the sensor looks, in units.
192targetFires for each entity the sensor finds, or only for the closest or the farthest, with that entity as the activator.
positionSets the center of the search as a locus position.
If you leave this key empty, the center is this entity.
line_blockedSets 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)
Walls & Glass (2)trace_toSets 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)
Center (1)fire_trigger_policySets 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)
Every entity (0)alive_filterSets whether it only finds living or only dead entities.
- Dead only (never players) (-1)
- No filter (0)
- Alive only (1)
No filter (0)takedamage_filterSets 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)
No filter (0)sensed_masterNames a master that must be on for the found entity, with that entity as the activator.
sensed_classnameOnly finds entities of this class.
classifySets 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)relationship_filterOnly 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)
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
trigger_entity_iterator- fires for each entity that passes a filter, anywhere
Changes since 1.38
trigger_sensoris new
