ID:263657
 
Ok here is the code for my lovely Evil wizards

Code:
mob
Monsters
Evil_Wizard
icon='Monsters.dmi'
icon_state="evil wiz"
New()
spawn()
Attack()
proc/Attack()
for(var/mob/P in oview(src,15))
if(P in oview(src,12))
if(P.client)
walk_towards(src,P,8)
if(P in oview(src,1))
sleep(5)
P.HP=0
P.Deathcheck()
del(src)
else
step_rand(src)
sleep(5)
Attack()
else
step_rand(src)
sleep(5)
Attack()
else
step_rand(src)
sleep(5)
Attack()


Problem description:

They stop moving if i go out of view of them i know this is because i put for(var/mob/P in oview(src,15))
Bur what i really wanted to know is how to get the mob to keep moving whether of not there is a mob in view
Use a while() loop.
In response to Zythyr
And how would i go about using that proc?