SetSwitchStateAction ​
Inherits: EventAction < Resource
Action to set a switch or light to a specific state (ON/OFF/BROKEN)
Properties ​
int | interactable_unique_id | 0 |
SwitchInteraction.SwitchState | switch_state | SwitchInteraction.SwitchState.OFF |
Variables ​
InteractableObject | target_switch | null |
Methods ​
String | get_function_description() |
InteractableObject | find_target_switch() |
Dictionary | save() |
void | load_data( data: Dictionary ) |
Property descriptions ​
int interactable_unique_id = 0 ​
ID of the switch/light to control
SwitchInteraction.SwitchState switch_state = SwitchInteraction.SwitchState.OFF ​
State to set the switch to
Variable descriptions ​
InteractableObject target_switch = null ​
Reference to the target switch
Method descriptions ​
String get_function_description() ​
Return a description of this action with parameter placeholders
InteractableObject find_target_switch() ​
Find the target switch by ID
Dictionary save() ​
Save action state to a dictionary
void load_data( data: Dictionary ) ​
Load action state from a dictionary