Skip to content

WorldPositionDistanceBetweenCondition ​

Inherits: EntityCondition < Condition < Resource

Checks if the entity is within a specified distance range from a world position.

Properties ​

Vector3world_positionVector3.ZERO
floatmin_range5.0
floatmax_range10.0

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 min_range = 5.0 ​

The smallest distance from the position

float max_range = 10.0 ​

The greatest distance from the position

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.