Skip to content

LockObjectAction ​

Inherits: EventAction < Resource

Action to lock or unlock an interactable object

Properties ​

intinteractable_unique_id0
boollock_statetrue

Variables ​

InteractableObjecttarget_objectnull

Methods ​

Stringget_function_description()
InteractableObjectfind_target_object()
Dictionarysave()
voidload_data( data: Dictionary )

Property descriptions ​

int interactable_unique_id = 0 ​

ID of the object to lock/unlock

bool lock_state = true ​

Whether to lock (true) or unlock (false) the object

Variable descriptions ​

InteractableObject target_object = null ​

Reference to the target object

Method descriptions ​

String get_function_description() ​

Return a description of this action with parameter placeholders

InteractableObject find_target_object() ​

Find the target object by ID

Dictionary save() ​

Save action state to a dictionary

void load_data( data: Dictionary ) ​

Load action state from a dictionary