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 ​
float | desired_distance | 8.0 |
float | tolerance | 1.5 |
bool | should_walk | false |
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.