I am spawning actors from the level blueprint via Spawn Actor from Class. I keep track of the number of actors spawned this way, also in the level blueprint. When an enemy actor is removed from the game I want to inform the level blueprint so I can decrement the enemy count and end the level when appropriate. I can’t figure out how to have the blueprint for the enemy actors communicate to the level blueprint without using a specific event dispatcher. This doesn’t seem to work since I am using the blueprint to spawn the enemies and can’t hook them up specifically.
Is there a way for me to make a “generic” dispatcher that the level blueprint will hear for each enemy death? Is there a way I can make a custom event that will fire throughout the scope of the game so I can use that?
Is there a better approach for me to take to accomplish this task?