I have an issue with an interface I’m trying to use. Its passing a Bool from a blueprint I created to my HUD. This is how I’ve been using Interfaces:
I start by dumping some data out of one of my blueprints. In this case, this is in my Character blueprint. These are some basic stats about my character that I want to display on screen.
This is what it looks like when I call that function on my player character. It works exactly like I wanted, allowing me to display the information from these variables on my HUD. However, I’m now trying to pass a Bool through this same concept and it never works. The set up is like this:
Vary simple, just like my first image, except that I’m using a bool. This is set in my Pickup_Health blueprint. The blueprint can detect if the player is looking at it or not. If it is, it enables key interaction on the player, allowing you to hit E to use the item. This works just fine, here is the section that sets the bool:
Since this works fine, I know the bool is being set to either True or False. However, in my HUD blueprint I get a different result. My best guess is that I’m not targeting the object correctly. The Player status information I mentioned earlier uses the Get Player Pawn action to select its target. However, if I use Select Object, as shown here:
It always posts as False. I have the Pickup_Health selected in the Select Object options and I still return nothing…
((yes I understand its thirst, not thurst btw.))