/tg/ Station 13 - Modules - TypesVar Details - Proc Details

move_to_cardinal

Moves to line up with the target along a cardinal direction, so a directional ability can fire down the lane. Reports SUCCESS once lined up and within range, FAILURE when the target is gone, too far, or pathing gives up.

Vars

destinationThe cardinal tile of our target we are currently moving toward.
maximum_distanceHow far away is too far.
minimum_distanceHow close to our target is too close.
movement_failedSet by on_movement_failed() when the movement system gives up pathing.
target_keyBlackboard key holding the atom to line up with.

Procs

move_towards_nearest_cardinalBegin moving toward the closest unblocked cardinal tile of our target.

Var Details

destination

The cardinal tile of our target we are currently moving toward.

maximum_distance

How far away is too far.

minimum_distance

How close to our target is too close.

movement_failed

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

target_key

Blackboard key holding the atom to line up with.

Proc Details

move_towards_nearest_cardinal

Begin moving toward the closest unblocked cardinal tile of our target.