Skip to content

SetTrapStateAction ​

Inherits: EventAction < Resource

Action to set a trap to ARMED state (ready to trigger)

Properties ​

intinteractable_unique_id0
TrapInteraction.TrapStatetrap_stateTrapInteraction.TrapState.ARMED

Variables ​

InteractableObjecttarget_trapnull

Methods ​

Stringget_function_description()
InteractableObjectfind_target_trap()
Dictionarysave()
voidload_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