# get_steps_to proc

Source: https://ref.dm-lang.org/proc/get_steps_to
Added in BYOND 515.

### Format
> `get_steps_to(Ref, Trg, Min=0)`

### Returns
> A list of directions to step.

### Args
- `Ref`: Starting point or object.
- `Trg`: An object on the map.
- `Min`: The minimum distance between Ref and Trg before movement halts.


Calculate a set of steps from `Ref` on a path to `Trg`, taking obstacles into account. The result of the proc is a list of directions that can be used with `step()`, or null if a path could not be found.

If `Ref` is within `Min` steps of `Trg`, no steps are computed. This is also true if the target is too far away (more than twice `world.view` steps). In either case, null is returned.

### See also
- [step proc](https://ref.dm-lang.org/proc/step.md)
- [step_to proc](https://ref.dm-lang.org/proc/step_to.md)
- [walk_to proc](https://ref.dm-lang.org/proc/walk_to.md)
- [get_step_to proc](https://ref.dm-lang.org/proc/get_step_to.md)
