How to spawn actors after 'death' of another?

Hi all! :smiley:

I’m looking into having my enemy AI spawn one after another but in a specific place and in specific numbers, but not entirely sure how to do this.

Currently, I have trigger boxes with activate a SpawnActor from Class node which works well having the AI spawn where I like and in certain positions but its currently a bit clunky as it requires the player to be in a certain position to do this. Can anyone recommend a system whereby a triggerbox will spawn the AI, then once the AI has been destroyed another will spawn in a specific location regardless of player location?

Thanks for any help and I’m quite new to blueprints so sorry if this is a simple question!

Actors can override Destroyed. This event fires once the actor gets destroyed, triggering something else - spawning another actor in your case.

you could have an actor that spawns the enemies then have a variable in the enemy to know which “spawner actor” spawned the enemy, then when the enemy dies it calls an event in its spawner to spawn another enemy. basically the enemy tells its home base to send a replacement just prior to its death. you could also use this kind of system to send the respawn signal to a random spawner as well if you wanted.