Space Station 13 - Modules - TypesVar Details - Proc Details

pathfinding_mover

A generalized datum for pathfinding, and moving to a target.

Vars

consider_movement_delayDo we consider movement delay? Disable for non-mobs
last_movement_delayRequires consider_movement_delay = TRUE, saves the last movement delay to prevent diagonal weirdness
max_triesmax amount of tries before resetting path to null
move_speedHow many 2-tick delays per move (5 = 1 second)
move_ticksA counter for move_speed via modulo
on_set_path_nullCallback invoked on failure
on_successCallback invoked on success
ownerCan be a simplemob bot, a drone, or even a pathfinding modsuit module (currently only implemented for drones)
owner_move_delayThe delay called as part of Move()
pathList of turfs through which a mod 'steps' to reach the waypoint
targetThe target turf we are after
triesHow many times have we tried to move?

Procs

generalized_stepTake our next step in our pathfinding algorithm
processUsing fast process, see if we should take the next step yet
startStart moving towards our target, returns false if the path does not lead to the target

Var Details

consider_movement_delay

Do we consider movement delay? Disable for non-mobs

last_movement_delay

Requires consider_movement_delay = TRUE, saves the last movement delay to prevent diagonal weirdness

max_tries

max amount of tries before resetting path to null

move_speed

How many 2-tick delays per move (5 = 1 second)

move_ticks

A counter for move_speed via modulo

on_set_path_null

Callback invoked on failure

on_success

Callback invoked on success

owner

Can be a simplemob bot, a drone, or even a pathfinding modsuit module (currently only implemented for drones)

owner_move_delay

The delay called as part of Move()

path

List of turfs through which a mod 'steps' to reach the waypoint

target

The target turf we are after

tries

How many times have we tried to move?

Proc Details

generalized_step

Take our next step in our pathfinding algorithm

process

Using fast process, see if we should take the next step yet

start

Start moving towards our target, returns false if the path does not lead to the target