Wave Spawners?

Hi there,

I am trying to make a special wave survival game, I would like to place down 10 spawn volumes that will spawn 1 NPC each meaing if there are ten spawn volumes there will be 10 NPCs each round.

but I am having trouble understanding how to get the 11th spawner which is a boss spawner to spawn only every 5 rounds, so round one only the ten spawn 1 NPC each round 2 same thing 3, 4 and on the 5th wave the special spawner activates and spawns a boss…

so the simple spawners spawn every round and the boss spawners spawn only every 5th round, how would i go about making this all work?

I see two ways how to accomplish that:

  • Make the boss spawn count rounds differently, I don’t know how you define rounds atm, but I would assume over the tick? Then you can just increase the tick of the boss to only tick every 5 rounds and that’s that
  • Make a spawn controller who is responsible for triggering spawning on all spawner, on begin play it gets all classes of type spawner and calls a TriggerSpawn function with extra parameters on them so that the spawner can use that extra information to decide if they should spawn or not

I would recommend using the second options it’s easier to extend when you need new special things and it has no risk of the spawners running out of synch to each other. It’s also easier to add a break or a rhythm to spawning should you ever need that.