you could try picking Actor
This might be a little inefficient because it fills an array with every single actor in the level.
You should have all your enemy/friendly characters inherit from a parent class. It’s kind of a lot for me to type out, but I’m sure you could find some tutorials about. I found one here:
then once you do that, you could just pick the parent class