Variable type that can store both actors and characters?

Character inherits from Pawn which, in turn, inherits from Actor.

You can explore the 147 derived classes here:

Actor is a safe choice then.

Hi there!
I’m working on a blueprint system in which I need to store all actors and characters within a certain radius.
Is there a variable type, that can store both of those blueprint classes?

Thank you in advance!

Best regards,
Rasmus

Thank you for your reply!
In Blueprint I tried to create a variable with type Actor, however it still can not store references to characters(Please see attached picture).

217377-unrealvariablescreenshot.png

Am I doing something wrong?

Not sure if I follow:

You will, of course, need an array of actors if you want to store a bunch of them:

217379-aarray.png

Yup, you are absolutely correct :slight_smile:
It works just fine now - must have been a bug somewhere else.

Thank you so much!