User Tools

Site Tools


Sidebar

timer_object

Timer Object


Description

This Level Object will countdown from the set duration and fire off an “Activated” Output event when the duration reaches zero. It can be set to fire off “Activated” Output events repeatedly on a set interval.

Location

Right-click on an empty space in the Layout Scene Manager and choose Logic > Timer from the list.

Properties

NAME TYPE DESCRIPTION READ ONLY
NETWORK
LEVEL OWNER CONTROL bool If the Level Owner controls the Timer it will tell the other Timers when to broadcast.
PROPERTIES
ENABLED bool Set the Timer enabled or disabled by default.
TIMER
TIME float The duration of the Timer countdown. When it reaches zero an “Activate” Output event will be broadcasted.
MAXTIME float If Max Time > Time then the Timer duration will be randomly rolled between Time and Max Time.
LOOP COUNT int The number of loops the Timer performs.
LOOPS FOREVER bool If True the Timer loops forever.

Input Events

Enable

Enable the Timer. This will start the countdown.

  • If an enabled Timer receives an “Enable” Input event it will reset the duration to the starting value.
Disable

Disable the Timer. This will stop the countdown.

  • This will also reset the duration to the starting value.
Reset

Reset the Timer duration to the starting value.

Enable and No Reset

Enable the Timer without resetting the duration to the starting value.

Output Events

Enabled

This event will fire when the Timer receives an “Enable” Input event.

Disabled

This event will fire when the Timer receives a “Disabled” Input event

Activated

This event will fire when the Timer duration reaches zero.

timer_object.txt · Last modified: 2019/07/18 12:30 by anarch16sync