Hud blueprint communication between player and HUD

Hello,

I have been looking for an answer for this issue and found part of the solution but not the whole solution.

What I want to do is pass a variable from my character to my hud, for this I have used a blueprint interface function and added it to both the hud and the player character.

I have created a literal int just for testing (imagine this is some player stat), I think I am half way there, I want to pass that literal int to the hud.

Hopefully these images explain it better… but for now I am getting just a ‘0’ printed, so somehow it is just using the defalut input value, I also tired disconnecting the bpi input-output for the ‘forHud’ function, no difference there.

Please help.

Okay, I am becoming a master at solving my own problems after posting the problem… I hope this helps anyone for the future though: