mob
NPC
Goblin
icon = 'enemies.dmi'
icon_state = "goblin"
density = 1
Bump(mob/M)
..()
if(!M)
M.hp -= 10/M.def
sleep(100)
else return
New()
..()
walk_rand(src,5)
Problem description:
The code doesn't come up with any errors in DM, but it doesn't work when I run the game.
I'm sure it's something REALLY obvious, but could someone help me?
thats basicaly the same as if(M==null)
you probably want something like
if(ismob(M))