enemy/Beast
icon = 'new base.dmi'
Health = 1200
Strength = 120
Control = 50
Powerlevel = 75
Harmful = 1
New()
.=..()
sleep(1)
src.NPCSYS()
mob/enemy
proc
NPCSYS()
// if(src == /mob/enemy/Beast)
var/mob/m
if(m in oview(5,src))
walk_towards(src,m,15,0.9)
spawn(1) src.NPCSYS()
else
walk_rand(src,25,0.9)
..()
spawn(1) src.NPCSYS()
Problem description:
As you can see in the above, i want the NPC to walk_rand, but if it spots a mob with 5 tiles away i want it to walk_towards it. When i run the game all it does is just walk_rand, ;(, a little help?