obj/spawn_point
var/mon_type
New()
spawn()
Spawn() //heh...
..()
proc/Spawn()
sleep(3000) //wait 5 minutes
new mon_type(src)
mob/monster
var/obj/spawn_point/spawnp
New(obj/spawn_point/S)
spawnp=S
..()
Del()
spawnp.Spawn()
..()
Problem description:
What I want it to do is have a spawn point that spawns a monster. Once that monster is killed the monster calls the spawn points Spawn() proc. However, I need to know how to make a var be a datum type (specifically a /mob/monster type for this)
var/mob/monster/M = new/stuffhere
if(!M)//if M dies
TAB> spawnsp.spawn()
?