trigger_entity_iterator

A trigger_entity_iterator fires its target once for each entity that passes its filters, with that entity as
!activator. For example, it can fire once for every player, or once for every monster named wave2.
Attributes
The entity also has these common keys:
- Naming and triggering: Name
name_filterOnly counts entities with this name.
If you leave this key empty, any name counts.
classname_filterOnly counts entities of this class.
If you leave this key empty, any class counts.
status_filterOnly counts living or only dead entities. Players never count as dead, because the iterator skips players who aren't alive.
- No filter (0)
- Only living entities (1)
- Only dead entities (never players) (2)
No filter (0)targetFires this target once for each entity. !activator and !caller in this key are the iterator's own activator and caller.
triggerstateSets the use type the target gets.
- Off (0)
- On (1)
- Toggle (2)
Off (0)run_modeSets how a trigger runs the passes over the entities.
- Run once (0) - Each trigger makes one pass
- Run once, multiple runs at once (1) - Each trigger starts its own pass, even while another is running
- Toggle on/off (2) - A trigger starts passes that repeat until you trigger it again
Run once (0)maximum_runsWith "Toggle on/off", sets how many passes it makes, and 0 means no limit.
0delay_between_triggersSets how many seconds pass between two entities of one pass. With 0, it does the whole pass at once.
0delay_between_runsWith "Toggle on/off", sets how many seconds pass between two passes.
0trigger_after_runFires this target at the end of each pass. If the activator is gone by then, the iterator itself is the activator.
round_resetWith Yes, the entity goes back to the way it was when the map loaded, at each round start before the players spawn. See Round hooks for more details.
- No (0)
- Yes (1)
No (0)Notes
- Players only count while they are alive. The iterator also skips entities that the game is removing
- A target that triggers the iterator while it runs doesn't start a new run, but Off or Toggle stops the run
- The class name, key names and values are the same as in Sven Co-op, but SBO only goes through alive players
See also
trigger_sensor- fires for each entity within a radius- Round hooks - the names the game fires at round starts, with the world as activator
Changes since 1.38
trigger_entity_iteratoris new

