Timer (Behaviour)

Description
Timer triggers activate after a specified delay value. These are useful any time you wish to trigger an action after a delay, or to repeatedly trigger an action at a consistent interval, or for a certain number of times.

Delay
How long the timer waits before activating. Delay is set in tenths of a second, so if the delay is set to “30”, then the timer will activate in 3 seconds. If the timer is set to repeat, then the time will to wait this long each time it activates.

Repeat Forever
When this checkbox is on, the timer will continue running after it activates, and trigger again after the delay expires. This will continue as long as the game is running, or until the “reset” input is activated. When this checkbox is off, the timer will activate only once.

Repeat
A count of how many times the Timer will activate before automatically disabling itself.

Inputs

 * Start - Activating this input will start the timer. If nothing is connected to the start input, the timer will begin running automatically
 * Reset - Stop the timer, and set its repeated count back to zero. For example: if the timer’s repeat count property is set to “10” but it has already activated 5 times, then it has only 5 loops left before it will stop running. If the Reset input is activated, then the timer is stopped, and the next time it starts it will run 10 times.
 * Delay - Updates the delay property
 * Reset - Stop the timer, and set its repeated count back to zero. For example: if the timer’s repeat count property is set to “10” but it has already activated 5 times, then it has only 5 loops left before it will stop running. If the Reset input is activated, then the timer is stopped, and the next time it starts it will run 10 times.
 * Delay - Updates the delay property

Outputs

 * Out - The timer activates this output, sending out the value “1”

Tips
Remember that a Timer will start automatically, unless a link is connected to the start input

If you want an event to happen every frame, consider using an Always trigger instead