if(src.bot)
if(src.Health<=0)
flick('SB.dmi',src)
sleep(9)
var/obj/corpse/robot/a = new /obj/corpse/robot
a.loc = src.loc
del(src)
..()
Problem description:
I have this bot NPC, when its killed id like the broken pieces to fall down under it... But it doesn't seem to be doing that ;/
And here's the corpse:
obj
corpse
robot
icon = 'ICONS/NPCS/Robot1.dmi'
icon_state = "broken"
density = 0
New()
var/loc = src.loc
sleep(200)
if(src.loc == loc)
del(src)
..()
else
..()
A couple things you can change to fix this issue: