/tg/ Station 13 - Modules - TypesVar 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_targetTracks the last atom we started moving toward so we can retarget when the key changes.

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_target

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