So I am designing a game. One of the things I need to blueprint and can’t think of a way to do is to spawn two mobs each time a mob is killed. So the game starts with one monster. When it dies two more spawn. On top of that would there be a way to do this with a delay on spawning until all currently spawned monsters are dead?
use spawnActorFromClass and spawn the new monster after the previous monster was destroyed (destroyActor). If you want to know if all monsters from a class are destroyed, i would keep a array of the monsters inside the gameInstance or gameMode. Every time you spawn add it to the array, every time it’s destroyed remove it from the array. Check the length of the array, if its 0 there are no more monsters, delay, and spawn more.