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 ​
int | interactable_unique_id | 0 |
Condition.CheckLogic | health_check_logic | Condition.CheckLogic.GREATER |
int | target_health | 0 |
Methods ​
bool | evaluate( argument: Variant = null ) |
String | get_description() |
String | get_function_description() |
bool | is_valid() |
String | get_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 ...).