Initiative Roll

Hello,
I’m trying to make an initiative roll at the beginning of combat, to sort actors’ turns.

I created a blueprint interface for every actor who can participate in combat. Then I created a blueprint actor to manage initiative… at the beginning of the blueprint I’m calling “Get All Actors with Interface”. I could sort all actors in a completely random way… but instead I’d like to get an Initiative variable from each actor and use that to sort them for combat priorities.

The problem is that I don’t know how to get the initiative variable from all the actors involved. Any suggestion on how to do it?

Thank you in advance!

Make a method on your Initiative interface called GetInitiative().
Then implement that for each of the actors.
Then call it.

Thank you very much!