How do I trigger event after enemies die?

So I’m working on a project, I have a spot where I want to have an enemy show up and you would have to fight. Now I have a cutscene set up that spawns a barrier and a blocking volume around the character. So what I am trying to do, is get it to read that the enemy was killed and then destroy the barrier and blocking volume.

I was on the forums and I was told to try using a counter, or “Get All Actors of Class” node or maybe even use the multigate. So I looked up a tutorial for using the get all actors, but it doesn’t seem to work the way it should. And I tried setting up a counter for the enemy spawn, don’t think I got that set up right.

But when I use the multigate i get it to partially work. I get it to trigger the next node on the gate but then it’ll instantly destroy the barrier and volume BEFORE the enemy is killed.

Best example of what I am trying to do is like in the Devil May Cry games, enemies spawn and a barrier appears on the doors. Once the enemies are all dead the barrier goes away.

If someone can show the basic way to achieve this that would help and I can work from there. Or explain very good on how to do this. Also this is the first time attempting to do something with enemies.

If I understand you correctly then you could use a trigger volume or actor, when you overlap it, change the collision (enable) on the blocking volume, then spawn your enemies. Counter should be easy to set up too, after every enemy death you just add or takeaway one, then do a check if the number is equal to what it should be and if it is, disable collision, if not spawn another enemy (to avoid being stuck). Of course this is oversimplified.