Skip to main content

trigger_timer

trigger_timer icon
Point entityPorted from Featureful

A trigger_timer fires its target again and again while it is on, after random delays between a minimum and a maximum.

Attributes​

The entity also has these common keys:

KeyDescriptionDefault
Targettarget

Fires after each delay, with the timer as the activator. With Forward activator, the activator is the entity that turned the timer on.

Minimum delaymin_delay

Sets the shortest delay between two fires, in seconds.

Default 0.5
Maximum delaymax_delay

Sets the longest delay between two fires, in seconds.

Default 1.0
Trigger number limittrigger_number

Sets how many times it fires before it turns off, where 0 means no limit.

Default 0
Trigger on limittrigger_on_limit

Fires when it reaches the Trigger number limit.

Reset at round startround_reset

With Yes, the entity goes back to its state at map load at each round start, before the players spawn. See Round hooks for more details.

  • No (0)
  • Yes (1)
Default No (0)

Flags​

1Start on

The timer is on when the map loads

32Don't delay first fire

The first fire comes at once when the timer turns on, instead of after a random delay

64Forward activator

The target gets the entity that turned the timer on as its activator. If that entity is gone, the timer is the activator

128Scheduled delays

The random delays follow a sequence that is fixed when the map loads, and each delay is still between the minimum and the maximum

256Don't reset trigger counter on deactivation

The timer keeps its count when it turns off, so the count for Trigger number limit continues when it turns on again. Without this flag, the count goes back to 0

Notes​

  • On turns it on, Off turns it off and Toggle switches it

See also​

Changes since 1.38​

  • trigger_timer is new