ID:262739
 
Code:
turf/fire
icon = 'misc.dmi'
layer = MOB_LAYER+1
Entered(mob/M)
M << "[M] gets a little too close to the fire! He bursts into flames!"
var/obj/a
a.icon = 'misc.dmi'
M.overlays += a
sleep(60)
M.overlays -= a


Problem description:

it doesnt say anything. and it doesnt do anything. whats the problem?
turf/fire
icon = 'misc.dmi'
layer = MOB_LAYER+1
Entered(mob/M)
if(ismob(M))
M << "[M] gets a little too close to the fire! He bursts into flames!"
var/image/a = new('misc.dmi')
M.overlays += a
sleep(60)
M.overlays -= a


First declare it as an image. Then check if it is a mob.
In response to Blakdragon77
still doesnt work
In response to Rky_nick
I tried it myself and it worked, I dont know whats wrong with yours ¬.¬'.
In response to Blakdragon77
nvm, now it works