Bluprint Interface

Hello, I have a problem trying pass a boolean from MyCharater Blueprint to MyHUD Blueprint … I set all like the map “Blueprints_Advanced” from the exemple project “ContentExemples”. But when my Boolean switch to true on my character blueprint, in myhud blueprint the event stay false … If someone can help me !

Here a screenshot of my blueprints ! Thank.

alt text

Howdy!

Take a look at this post:

Should help you set this up properly.

-W

Tank you but this doesnt help, i realy realy dont understand how interfaces works… I dont understand why in my exemple that doesnt works i did exatly like the exemple, set up the interface well ect… Is there a tuto who show exaclty how to set up de whole think? Not just 2 screenshots of only one blue print.

You could try doing it this way, based off your setup:

In your Character Blueprint, get reference to your HUD and feed that into the Target of your Detection Interface.

In your HUD Blueprint, set your On/Off boolean variable to receive the IN input from your Detection Interface Node (this is inside the HUD Blueprint, you’ll need to create an Out pin inside the actual Detection Interface Blueprint).

The On/Off boolean inside your HUD Blueprint will now receive the On/Off In settings from the Detection nodes inside the Character Blueprint. Anytime it changes in the Character Blueprint, it will change inside the HUD Blueprint with this setup.

-W

Note that you do NOT need to use an interface in this case. You could call ‘Get HUD’ and then Cast that to your particular HUD BP (MyHUD) and then access variables and fire events!

Tanks that worked just fine! I didnt know the Get Hud node and this saved my life! Tank you again :slight_smile: