Hello. I am wondering if there’s a way to end the game once the player hits a certain wave number. Like if a player hits wave 10, after all the enemies of wave 10 have been killed, the game ends. Here’s my code. Enemy Wave Mode posted by anonymous | blueprintUE | PasteBin For Unreal Engine
Hey there @JayLy199621! So the paradigm I usually do for something like this is Death Reporting. Basically the base class for enemies in my wave based game when spawned are all added to an array on the spawner when spawned, and when they trigger their death, they send a message up to the wave handler to let it know they died so that you don’t have to poll the enemies constantly to verify who’s alive and who isn’t.
In your system it looks like your waves fire repeatedly after a set amount of time regardless. So if you don’t mind the player having to wait on the timer you could just append this at the end. However if you’d like it to happen as the last enemy dies, you may have to look towards a solution like mine.