ID:175983
 
How do i use the walk_to proc in the help thing in byond it says
walk_to(Ref,Trg,Min=0,Lag=0) 
Ref: A mob or obj.
Trg: An object on the map.
Min: The minimum distance between Ref and Trg before movement halts.
Lag: Delay in world 1/10 seconds between movement


I dont get what to do at ref or trg i tried putting the path for ref /mob/units/test and the trg /turf/test but it didnt work
For the sake of an example, let's say you want <code>src</code> to walk towards <code>A</code>, and stop when it's adjacent to <code>A</code>:

<code>walk_to(src,A,1,1)</code>

You will, of course, have to define the var <code>A</code> before using that line.