Infinite wave creation problem

Hello Everyone, I’m trying to create a game with an infinite wave mode. I can initial the game mode with 15 enemies, but after their death, I can’t go further. Here’s my Blueprint.

Here’s my wave logic:

  1. Identify All enemies are dead in a certain wave.
  2. Then spawn next waves with 2 enemies increment on each wave.
  3. Loop again and again.

Please help me with some blueprint example. I’m totally new in UE4. And i’m not having a enemy dead counter on my character Blueprint. How to add that too ?

  1. When finished creation of the first wave look if all enemies are gone

  2. If all are gone increase the amount of Enemies by two and start the for look again

  3. If not all are gone make a small delay and look again

    PS: Delay does only work in loops if you create a macro (try doing this Unreal Engine 4 Tutorial: For Each Loop With Delay - YouTube)

Thanks. But How do I check all enemies are gone or destroyed in a wave? That’s creating my headache
and when one enemy is dead, how to decrease that count from character blueprint? using an array or something else? If you have tine, please show me a blueprint like above

@Norishou , THe length is not decreasing upon an enemy death !! Any solution ??

You can simply do this with the get all Actors of Class.
Of the length of the array is 0 the there are no enemies left.

@Norishou , I did it by the same you showed , but even an enemy dies, it doesn’t decrease any length. My enemy is an of character class

I have two things that could have gone wrong:

  1. The Delay Node is 5 seconds long so if you view it directly it might not show a change.
  2. Do you delete your the actor directly or do you have a dead function?

@Norishou , Here’s my Death or Damage logic and also I didn’t create a macro like a video you suggested me.

If you attach the destroy actor again it should work.

Sorry That DeathActor is connected , but the time I captured it wasn’t, Here’s the updated one

You said you had a counter in your Character. You can simply use this in your wave creator by using a get player character and then cast it to your Character. After that you can use the function by dragging the pin out of the cast and searching for your function

I am sorry to say I am totally new, show me some blueprint if you have time

I can do this in 4 hours

Sorry to disturb you… If you have time, then Otherwise your first solution is working fine !!! Greatest help, friend,… savior !!