Is there a way to end the game when the number of a certain actor reaches 0?

I want to be able to have my game end when the player destroys all of the enemies on the map. Is there a way for me to actively check the number of instances of a specific actor are on the map and is there a way for me to end the game when that number reaches 0?

I’m just starting getting into blueprint scripting and I’m not too sure where to start with this.

Use “Get All Actors of Class” in your blueprint.

How would I use that, exactly? I don’t think that there is a way for me to convert the array that comes out of that into a float or int.

Output array have property “Length”. Take it and compare with zero.

Awesome, that worked! Thanks for your help.

Mark it as answered please.