TimerTrigger ​
Inherits: EventTrigger < Resource
Triggers after a specific time has elapsed
Properties ​
float | timer_duration | 5.0 |
bool | repeating | false |
Variables ​
Timer | timer |
Methods ​
String | get_display_name() |
String | get_function_description() |
void | setup() |
void | start_timer() |
void | cleanup() |
bool | is_triggered( event_data: Dictionary ) |
String | generate_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