Best way for any actor to call to one specific actor?

I have an NPC reminding the player to do certain tasks. I want several different actors in the scene to be able to tell the NPC that he should remind the player about a specific thing.

Basically, I need a way for any actor to send a signal to one specific actor.

I’m currently thinking that the best way to do this would be to create an interface with the NPC as the only actor with the interface implemented, and whenever I wanna call it from a different actor I could just “Get All Actors with Interface” and call it that way.

It seems a bit non-intuitive though. Is there a better way to do this?

If there is only one copy of that specific actor in the level(s) you can simply use “GetAllActorsOfClass”. You can also call it on BeginPlay event and store the reference. I don’t see a reason to make it more complicated and create blueprint interface just for this single actor.

Interfaces would be good if you need to communicate in other way - from single actor to many others actors and they need to act different.

Okay, good to know! Thanks for the help :slight_smile: