ID:166366
 
        Huge_Rat
icon_state="GiantRat"
HP=20
MHP=20
MP=0
MMP=0
STR=5
DEF=4
New()
. = ..()
spawn()
Wander1()

How to make this monster respawn in one minute after it gets dead? Every monster should respawn in one minute after they die.
Well, you can call Repop() every minute, but then all monsters will respawn and things might respawn after let's say 30 seconds instead of 60.

But rather than call del() after the monster dies, simply send it to an unused z level, then have something like this:

mob/Monster
var/original_location
New()
..()
original_location = loc //where you placed it on the map

//put this where you would of had your del() stuff
..()
z = 5 //or whatever unused z level you choose
spawn(600)
loc = original_location
In response to Bobthehobo
Or:

Del()
var/mob/NPC/Rat/R = new
var/respawn_x
var/respawn_y
var/respawn_z

respawn_x = src.x
respawn_y = src.y
respawn_z = src.z

spawn(600)
R.x = respawn_x
R.y = respawn_y
R.z = respawn_z
..()


Not sure how useful that is, but seems to make sense to me ;)

EDIT: Had to modify slightly, should work like that, not tested though so don't take my word for it =)
In response to Hant Teath
Why would you create a new mob when you could just forget about Del() and re-use the same mob.

And why all those vars? Just saving loc is fine.
In response to Hant Teath
mob/respawned/Del()
var/oldloc = loc
loc = null //make him go shazzam!
sleep(600); loc = oldloc


Thanks everyone for helping, it works now