Skip to main content

trigger_look

trigger_look icon
Brush entityPorted from Featureful

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:

KeyDescriptionDefault
Look targetnetname

Names the entity that the player has to look at, and the player has to look at its origin.

Look timelook_time

Sets how many seconds the player has to keep looking, and looking away starts it over.

Default 1
Field of viewfield_of_view

Sets 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.

Default 0.7
Targettarget

Fires this target with Toggle, with the looking player as the activator.

Kill targetkilltarget

Removes the entities with this name when the player has looked long enough.

Delay before triggerdelay

Sets how many seconds the entity waits after the look is complete. Then it fires the Target and removes the Kill target.

Default 0

Flags​

1Remove on fire

It 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​

Changes since 1.38​

  • trigger_look is new