TargetDistanceBetweenCondition ​
Inherits: EntityCondition < Condition < Resource
Checks if the target is within a specified distance range (between min and max).
Properties ​
float | min_range | 5.0 |
float | max_range | 10.0 |
bool | is_between | true |
Methods ​
String | get_entity_function_description() |
bool | evaluate_entity( entity: Entity ) |
String | get_entity_description() |
Property descriptions ​
float min_range = 5.0 ​
Checks if the target is within a specified distance range (between min and max).
float max_range = 10.0 ​
The greatest distance to the target
bool is_between = true ​
True: the target must be between the two distances. False: it must be outside them
Method descriptions ​
String get_entity_function_description() ​
The sentence the editor shows for the condition, with {placeholders} for its values.
bool evaluate_entity( entity: Entity ) ​
Is the condition met for this entity?
String get_entity_description() ​
A short text about what the condition checks on the entity.