mob
follow
wolf
var/mob/pc/owner
icon = 'person.dmi'
icon_state = "pet"
var/nomove = 0
New()
spawn()
wander()
proc/wander()
if(nomove == 0)
while(owner in oview(8,src))
step_to(src,owner,1)
sleep(5)
sleep(5)
if(owner in oview(2,src))
src.nomove = 10
else
nomove -= 1
if(nomove < 0)
nomove = 0
wander()
Problem description:
it works, but the nomove delay isnt happening
<code>walk_towards()</code> takes 3 arguements: A mob or object (In your case, the monster), An object on the map (In your case, the monsters target), and Lag (In your case, the nomove delay). If you stick those 3 together, it would look something like this: