Run a line depending on level

Im pretty new to unreal BPs, i was wondering if there was a way for me to run a whole line depending on level

For example if i choose level 1 Zombies will spawn in X if i choose level 2 Zombies will spawn in z

So i want to copy what i already have created for Level 1 but want to change spawns when changing levels

  • create an actor that acts as a zombie spawner
  • place this actor in each level
  • adjust settings for each of those actors
  • depending on how many various spawning patterns you need, it can be controlled either by an enumerator, by int, or by name
  • if the patterns get complex and require a lot of data - use a Data Table to store it

If all you need is time delay:

Even a simple delay would do for this but, who knows, perhaps you’re also planning many waves in a single level - a timer would more versatile.

1 Like