Download

Passing variables from level blueprint to HUD blueprint

What I am trying to do is, press ‘E’, destroy actor, set variable and on the HUD blueprint check the bool value of the set variable from the level blueprint. If it is true then display a message on screen.

I have the actor getting destroyed, but can not set the text on the hud.

I think you’re gonna need to set up or use an existing Blueprint Interface. Interfaces give you the option to communicate from one blueprint to another.

I think you’ll find answers here: Tesla Dev - YouTube

The Hunger System & the Fuel/HUD tutorials helped me get a decent handle on HUD related blueprints.

this page helped too:

read this, esp see diagram at bottom.

https://docs.unrealengine.com/latest/INT/Programming/Gameplay/Framework/QuickReference/index.html

Declare some variable inside character BP,
SET its value from level BP
READ it from HUD and display.

Setting value:
e95c9a4962401c0b747679c242e05125c635a11b.jpeg

Reading it in HUD:
58f807f689a8884b6aaf279fa5d6d967013ceaba.png

To get that cast to character node, drag connection from “get player character” and start typing name of blueprint you want cast to (ie myCharacter)

I can not get it to work, here are my blueprints:





dce0b356672cf2963b5290a25b1528f30bbb4b8c.jpeg

Thanks Nawrot , it took me a couple of times going through the Fuel System pick up to understand how to adapt it to what I was doing.

I have it fixed, if anyone want’s to know how just leave a reply and ask.