DoorStateCondition ​
Inherits: Condition < Resource
Check door state and accessibility Evaluates door-specific conditions like open/closed state and lock status
Properties ​
int | interactable_unique_id | 0 |
bool | must_be_open | true |
bool | state_must_match | true |
bool | check_if_locked | false |
bool | should_be_unlocked | true |
bool | must_be_accessible | true |
Methods ​
bool | evaluate( argument: Variant = null ) |
String | get_description() |
String | get_function_description() |
Property descriptions ​
Target
int interactable_unique_id = 0 ​
The unique ID of the door to check
State Checks
bool must_be_open = true ​
Whether the door must be open (true) or closed (false)
bool state_must_match = true ​
Whether the open/closed state must match exactly
bool check_if_locked = false ​
Whether to check if the door is locked
bool should_be_unlocked = true ​
If checking lock status, whether door should be unlocked (true) or locked (false)
bool must_be_accessible = true ​
Whether the door must be accessible (not destroyed)
Method descriptions ​
bool evaluate( argument: Variant = null ) ​
Is the condition met?
String get_description() ​
A short text about what the condition checks.
String get_function_description() ​
The sentence the editor shows for the condition, with {placeholders} for its values.