mob/Monster/Goblin
icon = 'golem_top.dmi'
icon_state = ""
New()
..()
var/obj/mobbottom/MT=new
MT.name="[name]"
overlays+=MT
hp = 25
var/mob/P
New()
. = ..()
spawn()
Wander()
proc/Wander()
while(src)
var/Found = FALSE
for(P in oview(5,src))
step_towards(src,P)
Found = TRUE
break
if(Found != TRUE)
step_rand(src)
sleep(10)
sleep(5)
Bump(mob/M)
if(istype(M,/mob))
Attack(M)
Problem description:
well this is my code for a monster i get no errors. when i put as is the monsters attack each other. but when i add /player to the bump proc , in side if parenthesis. EXample:
if(istype(M,/mob/player)). they stand there and look around getting stuck on each other. i have tried lots of things but i can not get it right can some one plz help me.