When Timer Timeouts
Fires when the timer returns to zero, at most once per frame.
Introduction
When Timer Times Out is an event in the Timer group of World Events. It fires when the timer returns to zero, at most once per frame. This event carries no parameters. Like every event, it does nothing by itself. It waits for the right moment, then runs all the actions connected to it. This event belongs to the Timer component. Open the Timer component guide to see everything the component itself can do. Timers give your world a heartbeat: this event fires at zero, and it is commonly chained with When Treasure Obtained for time-limited hunts or with prop cycles from When Prop is Added for respawning loot. Countdown setup, looping, and stop conditions are configured in the Timer component guide. When Timer Times Out event in the World Editor Image The When Timer Times Out event in the Script Editor. caption
Parameters
None This event has no parameters. The event fires on its own and everything you need is the object running this script. Parameter Description
How to Access
How to Access - Event When Timer Times Out
How to Use
Select the object, press Propertie (the blue equalizer icon) in the bottom action menu, and scroll to the bottom of the properties panel. Press Add Component and pick the Timer component; its block stacks below the existing properties with the When Timer Times Out event inside it. Press the + button below the event to add a script, then press Edit on that script to open the script editor and build the actions that should run when the event fires. Press Play and wait for the timer to reach zero, then check that the actions run.
Example
When timer timeouts: Execute Self, Group.Broadcast Start Event to AllPlayer when-timer-timeouts-example.png Sends a Start Event broadcast to every player when the timer runs out. caption
Common Uses
Run a server-wide countdown that broadcasts a start event to every player End a round or trigger sudden death when time runs out Spawn a wave of enemies or close a door on schedule
Tip
Pair the timeout with a Group.Broadcast Start Event to AllPlayer for server-wide announcements, and use the Timer commands to restart the countdown for looping behavior.