Skip to content

TargetDistanceBetweenCondition ​

Inherits: EntityCondition < Condition < Resource

Checks if the target is within a specified distance range (between min and max).

Properties ​

floatmin_range5.0
floatmax_range10.0
boolis_betweentrue

Methods ​

Stringget_entity_function_description()
boolevaluate_entity( entity: Entity )
Stringget_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.