ControlDoorAction ​
Inherits: EventAction < Resource
Action to open or close a door
Properties ​
int | interactable_unique_id | 0 |
DoorOperation | operation | DoorOperation.OPEN |
Variables ​
InteractableObject | target_door | null |
Methods ​
String | get_function_description() |
InteractableObject | find_target_door() |
Dictionary | save() |
void | load_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