pathfinding_mover
A generalized datum for pathfinding, and moving to a target.
Vars | |
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? |
Procs | |
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 |
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