WorldPositionDistanceCondition ​
Inherits: EntityCondition < Condition < Resource
Checks if the entity is within range or farther than a world position. Consolidates WorldPositionFartherThan and WorldPositionWithinRange conditions.
Properties ​
Vector3 | world_position | Vector3.ZERO |
float | range_threshold | 8.0 |
bool | is_farther | true |
Methods ​
bool | evaluate_entity( entity: Entity ) |
String | get_entity_description() |
String | get_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.