Hammerwatch Forum
Custom mapping and Mods => Editor Discussion => Topic started by: hakketerror on December 28, 2014, 10:25:29 PM
-
Hey guys
I'm new and tried for many hours yesterday to get this effect. I have 3 sets of spawners, 1 set has 3 spawners (bats). I want all the spawners to spawn a bat every 250ms. So i connected them all to a timetrigger and they all spawn at the same time.
What i want to achieve now is that i have the 3 sets. So only 3 spawners spawn at 250ms, then get disabled and the next set gets enabled. At the end, the first set should get enabled again. I got some solutions but they involved insane amounts of scripting and im sure there must be an easier way.
The same logic would probably apply to the spike-traps that you see in the campaign, where some traps are activated and some aren't and then it changes.
Whats the best way to achieve this?
Thanks for your help!
-
You can create a Variable. When the 250ms timer ticks, it checks the variable. If the Variable is 1, it spawns Set A and then adds one. If 2, Spawns Set B then adds one. If 3, Spawns Set C then subtracts 2.
This is probably the simplest way to get the Spawners to work.
-
hey thanks, i got a system working. im spawning mobs and use a variable to count the number and after 2 i just disable the spawntimer and start the next one and do that in a loop :)