maintain_distance 
Moves away from a target if too close, or toward it if too far, to stay within the blackboard-keyed distance band.
Vars | |
| approach_movement_type | Movement type to use while approaching a target that's too far. Null falls back to the controller's default movement type. Reset on finish. |
|---|---|
| max_dist_key | Blackboard key holding the maximum desired distance. |
| min_dist_key | Blackboard key holding the minimum desired distance. |
| movement_failed | Set by on_movement_failed() when the movement system gives up pathing. |
| target_key | Blackboard key holding the atom to keep distance from. |
Procs | |
| retreat | Steps one tile away from target using backstep avoidance, falling back to shuffled directions if blocked. |
Var Details
approach_movement_type 
Movement type to use while approaching a target that's too far. Null falls back to the controller's default movement type. Reset on finish.
max_dist_key 
Blackboard key holding the maximum desired distance.
min_dist_key 
Blackboard key holding the minimum desired distance.
movement_failed 
Set by on_movement_failed() when the movement system gives up pathing.
target_key 
Blackboard key holding the atom to keep distance from.
Proc Details
retreat
Steps one tile away from target using backstep avoidance, falling back to shuffled directions if blocked.