mob
var/XL
var/YL
var/ZL
mob
proc
Respawn()
for(var/mob/monster/M in world)
if(M.HP <= 0)
M.XL = M.x
M.YL = M.y
M.ZL = M.z
del(src)
spawn(20)
new src
M.loc = locate(M.XL,M.YL,M.ZL)
M.HP = M.HP
Problem description:
The code checks out, but doesn't work. How come?
~~> Unknown Person