Skip to content

LocalVariableReachTrigger ​

Inherits: EventTrigger < Resource

Triggers when a local variable reaches or leaves a specific value

Properties ​

Stringvariable_key""
Varianttarget_valuenull
booltrigger_on_reachtrue

Variables ​

Eventparent_eventnull

Methods ​

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

Property descriptions ​

String variable_key = "" ​

The variable key/name to watch

Variant target_value = null ​

The specific value to watch for

bool trigger_on_reach = true ​

Whether to trigger when reaching the value (true) or when leaving it (false)

Variable descriptions ​

Event parent_event = null ​

Reference to the parent event

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() ​

Set up any listeners or connections needed by this trigger

void cleanup() ​

Clean up any listeners or connections

bool is_triggered( event_data: Dictionary ) ​

Check if this trigger is currently active