SetTrapStateAction ​
Inherits: EventAction < Resource
Action to set a trap to ARMED state (ready to trigger)
Properties ​
int | interactable_unique_id | 0 |
TrapInteraction.TrapState | trap_state | TrapInteraction.TrapState.ARMED |
Variables ​
InteractableObject | target_trap | null |
Methods ​
String | get_function_description() |
InteractableObject | find_target_trap() |
Dictionary | save() |
void | load_data( data: Dictionary ) |
Property descriptions ​
int interactable_unique_id = 0 ​
ID of the trap to arm
TrapInteraction.TrapState trap_state = TrapInteraction.TrapState.ARMED ​
State to set for trap
Variable descriptions ​
InteractableObject target_trap = null ​
Reference to the target trap
Method descriptions ​
String get_function_description() ​
Return a description of this action with parameter placeholders
InteractableObject find_target_trap() ​
Find the target trap by ID
Dictionary save() ​
Save action state to a dictionary
void load_data( data: Dictionary ) ​
Load action state from a dictionary