Skip to content

KeepDistanceAction ​

Inherits: CombatAction < Resource

Maintains a specific distance from target by moving closer or farther as needed. Useful for ranged enemies that want to stay at optimal range.

Properties ​

floatdesired_distance8.0
floattolerance1.5
boolshould_walkfalse

Property descriptions ​

float desired_distance = 8.0 ​

The distance to keep from the target.

float tolerance = 1.5 ​

How far off that distance the entity may be before it moves.

bool should_walk = false ​

True when the entity walks and does not run.