Skip to content

DoorStateCondition ​

Inherits: Condition < Resource

Check door state and accessibility Evaluates door-specific conditions like open/closed state and lock status

Properties ​

intinteractable_unique_id0
boolmust_be_opentrue
boolstate_must_matchtrue
boolcheck_if_lockedfalse
boolshould_be_unlockedtrue
boolmust_be_accessibletrue

Methods ​

boolevaluate( argument: Variant = null )
Stringget_description()
Stringget_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.