Skip to content

WorldPositionDistanceCondition ​

Inherits: EntityCondition < Condition < Resource

Checks if the entity is within range or farther than a world position. Consolidates WorldPositionFartherThan and WorldPositionWithinRange conditions.

Properties ​

Vector3world_positionVector3.ZERO
floatrange_threshold8.0
boolis_farthertrue

Methods ​

boolevaluate_entity( entity: Entity )
Stringget_entity_description()
Stringget_entity_function_description()

Property descriptions ​

Vector3 world_position = Vector3.ZERO ​

The world position to measure from

float range_threshold = 8.0 ​

The distance to compare with

bool is_farther = true ​

If true, checks if FARTHER than range; if false, checks WITHIN range

Method descriptions ​

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.

String get_entity_function_description() ​

The sentence the editor shows for the condition, with {placeholders} for its values.