mob/Dog
var/Leash
icon = 'Dog.dmi'
New()
..()
Leash = src.loc
Chase()
Bump(atom/movable/A)
..()
if(istype(A, /mob/Player)) step(A,src.dir)
proc
Chase()
for(var/mob/Player/H in range(5,Leash))
H << "Bark"
step_towards(src, H)
if(!H) // This doesn't work
step_towards(src, Leash)
spawn(3) Chase()
Problem description:
The dog is suppose to chase away anyone within view of the location he was created. That works but i can't get him to go back to his original point after he chases people away.