Skip to content

TimerTrigger ​

Inherits: EventTrigger < Resource

Triggers after a specific time has elapsed

Properties ​

floattimer_duration5.0
boolrepeatingfalse

Variables ​

Timertimer

Methods ​

Stringget_display_name()
Stringget_function_description()
voidsetup()
voidstart_timer()
voidcleanup()
boolis_triggered( event_data: Dictionary )
Stringgenerate_objective_description()

Property descriptions ​

float timer_duration = 5.0 ​

Exported properties that will be editable in the UI

bool repeating = false ​

True when the timer starts again after it fires.

Variable descriptions ​

Timer timer ​

Internal state

Method descriptions ​

String get_display_name() ​

Return the display name for this trigger

String get_function_description() ​

Return the function description with parameter placeholders

void setup() ​

Setup the timer when the trigger is activated

void start_timer() ​

Start or restart the timer

void cleanup() ​

Clean up the timer

bool is_triggered( event_data: Dictionary ) ​

Check if this trigger caused an event

String generate_objective_description() ​

Generate quest objective description