Author Topic: 3 Sets of 3 spawners that are activated after each other  (Read 4378 times)

hakketerror

  • Posts: 3
  • Maggot Crusher.
    • View Profile
3 Sets of 3 spawners that are activated after each other
« 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!

CrusaderDeleters

  • Posts: 102
  • The Great Crusader
    • View Profile
Re: 3 Sets of 3 spawners that are activated after each other
« Reply #1 on: December 29, 2014, 03:12:06 PM »
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.
The King of Maernol

hakketerror

  • Posts: 3
  • Maggot Crusher.
    • View Profile
Re: 3 Sets of 3 spawners that are activated after each other
« Reply #2 on: December 31, 2014, 07:43:11 AM »
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 :)