/tg/ Station 13 - Modules - Types — Var Details - Proc Details

move_to_target

Moves toward a blackboard-keyed target each tick. Succeeds when within required_dist by default. Pass finish_on_arrival = FALSE to keep running indefinitely (used in combat parallels). Pass movement_type to temporarily override the controller's ai_movement; resets to the initial type on finish.

Vars

finish_on_arrivalWhether to succeed once within required_dist; FALSE keeps running indefinitely.
movement_failedSet by on_movement_failed() when the movement system gives up pathing.
movement_typeOptional ai_movement type override; resets to the initial type on finish.
required_distDistance at which arrival is considered reached.
target_keyBlackboard key holding the atom to move toward.
tracked_movable_targetMovable target whose movement signal we are following.
tracked_targetTracks the last atom we started moving toward so we can retarget when the key changes.
update_movement_for_moving_targetIf true, repath when a movable target moves. This only works with navmap movement.

Procs

track_moving_targetStarts tracking target movement when enabled. Navmap-only: other movement datums cannot repath an active route.

Var Details

finish_on_arrival

Whether to succeed once within required_dist; FALSE keeps running indefinitely.

movement_failed

Set by on_movement_failed() when the movement system gives up pathing.

movement_type

Optional ai_movement type override; resets to the initial type on finish.

required_dist

Distance at which arrival is considered reached.

target_key

Blackboard key holding the atom to move toward.

tracked_movable_target

Movable target whose movement signal we are following.

tracked_target

Tracks the last atom we started moving toward so we can retarget when the key changes.

update_movement_for_moving_target

If true, repath when a movable target moves. This only works with navmap movement.

Proc Details

track_moving_target

Starts tracking target movement when enabled. Navmap-only: other movement datums cannot repath an active route.