trigger_look

A trigger_look is a brush trigger that fires its target when a player standing in it keeps looking at an entity for
some time.
Attributes
The entity also has these common keys:
- Naming and triggering: Name and Master
netnameNames the entity that the player has to look at, and the player has to look at its origin.
look_timeSets how many seconds the player has to keep looking, and looking away starts it over.
1field_of_viewSets how exactly the player has to look. 1.0 is dead center, 0.7 is about 45 degrees, 0 is 90 degrees and -1 is any direction.
0.7targetFires this target with Toggle, with the looking player as the activator.
killtargetRemoves the entities with this name when the player has looked long enough.
delaySets how many seconds the entity waits after the look is complete. Then it fires the Target and removes the Kill target.
0Flags
1Remove on fireIt fires once, and then the brush is removed. Without this flag, it fires again after each Look time while the player keeps looking. This flag is set by default
Notes
- Each player counts their own look time, which starts again when they leave the brush or look away
- Only alive players count
- Nothing fires while the Master is off for that player
- The brush isn't drawn
See also
trigger_multiple- fires while a player touches it
Changes since 1.38
trigger_lookis new
