Skip to content

InteractableHealthCondition ​

Inherits: Condition < Resource

Checks if a destructible interactable's health meets certain criteria. Uses ObjectRegistry to find the target interactable by unique ID.

Properties ​

intinteractable_unique_id0
Condition.CheckLogichealth_check_logicCondition.CheckLogic.GREATER
inttarget_health0

Methods ​

boolevaluate( argument: Variant = null )
Stringget_description()
Stringget_function_description()
boolis_valid()
Stringget_expected_argument_type()

Property descriptions ​

Target Interactable

int interactable_unique_id = 0 ​

The unique ID of the destructible interactable to check

Health Check

Condition.CheckLogic health_check_logic = Condition.CheckLogic.GREATER ​

Logic for comparing the health

int target_health = 0 ​

Target health value to compare against

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.

bool is_valid() ​

Are the settings of the condition complete?

String get_expected_argument_type() ​

The kind of thing the condition is checked against (an entity, an encounter ...).