Skip to content

ControlDoorAction ​

Inherits: EventAction < Resource

Action to open or close a door

Properties ​

intinteractable_unique_id0
DoorOperationoperationDoorOperation.OPEN

Variables ​

InteractableObjecttarget_doornull

Methods ​

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

Enumerations ​

enum DoorOperation ​

The options of door operation: open, close.

  • OPEN = 0 - Open the door
  • CLOSE = 1 - Close the door

Property descriptions ​

int interactable_unique_id = 0 ​

ID of the door object to control

DoorOperation operation = DoorOperation.OPEN ​

Operation to perform on the door

Variable descriptions ​

InteractableObject target_door = null ​

Reference to the target door

Method descriptions ​

String get_function_description() ​

Return a description of this action with parameter placeholders

InteractableObject find_target_door() ​

Find the target door by ID

Dictionary save() ​

Save action state to a dictionary

void load_data( data: Dictionary ) ​

Load action state from a dictionary