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. |
|---|---|
| face_target | Should we keep facing the target while retreating? |
| 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. |
| tracked_movable_target | Movable target whose movement signal we are following. |
| update_movement_for_moving_target | If true, repath when a movable target moves. This only works with navmap movement. |
Procs | |
| retreat | Steps one tile away from target using backstep avoidance, falling back to shuffled directions if blocked. |
| track_moving_target | Starts tracking target movement when enabled. Navmap-only: other movement datums cannot repath an active route. |
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.
face_target 
Should we keep facing the target while retreating?
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.
tracked_movable_target 
Movable target whose movement signal we are following.
update_movement_for_moving_target 
If true, repath when a movable target moves. This only works with navmap movement.
Proc Details
retreat
Steps one tile away from target using backstep avoidance, falling back to shuffled directions if blocked.
track_moving_target
Starts tracking target movement when enabled. Navmap-only: other movement datums cannot repath an active route.