Interface Message from HUD to another ActorClass (Target)

Hi,
i have a HUD Blueprint, an Interface Blueprint and a class Blueprint. I want to send a Message from the HUD Blueprint to the class Blueprint when a Button is pressed.

The Problem is that i can’t find a way to specify the target Blueprint.

4421-blueprint.png

I’m calling the ButtonOneWasPressed event from the Interface and set the bool-variable to true but i find no way to set the target to the class Blueprint.
I can’t put the HUD Blueprint to the Scene outliner so a public variable for the class Blueprint doesn’t work.

Here is the Receiver in the second class Blueprint

4422-blueprint2.png

structure : HUD-BP → Interface → DoSomething-BP

Argg this is exactly the problem I am having.

I want to click a bottom on the HUD and have it change something on an actor blueprint.

Its easy to do between the HUD and the character. “Get player character” gets you the target.

I just don’t see why there needs to be a target for the interface blueprint anyway. What if I want to have a variable that any blueprint can access.

I have a a work around… ifs pity funny so please someone tell me another way.

Turns out you cant even set the target of a interface to the HUD from a random BP. but you can set target to the player controller.

So I setup 2 new interfaces.

1 Goes from the random BP top the Controller BP.
2 Goes from the Controller BP to the HUD BP.

The Variable in both cases is the Self on the random BP (Eg. The self is going from the random BP to the Controller BP then to the HUD BP as a never set Variable). Then you can plug that Variable into the original interface’s target on the HUD BP and any other Variable you want to go from the HUD to the random BP will go… And it works … so crazy…

I feel dirty right now…

:smiley: LOL i don´t know if that works, but tell me if works :smiley: