Using the Tinker's Factory ability, like Child_0f_Bodom suggested, is much easier to make and modify, and doesn't risk causing memory leaks on your map if you're not experienced on triggering.
Remember to set the duration of the spawns to 0 (undoes the life span timer).