LocalVariableReachTrigger ​
Inherits: EventTrigger < Resource
Triggers when a local variable reaches or leaves a specific value
Properties ​
String | variable_key | "" |
Variant | target_value | null |
bool | trigger_on_reach | true |
Variables ​
Event | parent_event | null |
Methods ​
String | get_display_name() |
String | get_function_description() |
void | setup() |
void | cleanup() |
bool | is_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