Apply damage works when testing, but not in practice

Hi! I’ve made a simple damage system for my player character. Its connected to a healthbar UI widget that decreases when damage is taken. For playtesting’s sake I’ve made it so every time I press 1 the health decreases, and that works. Here are the blueprints for it:

However, when I actually want to implement it a problem arises. The player needs to answer questions, and if they answer incorrectly they’re supposed to take damage.
They don’t. Here’s the blueprint for that

please help!

image

Creating a variable and naming it Hero does not cut it. How did you reference that Hero? Could this be an issue?

If you only have 1 pawn and you possess it, you can just plug in Get Player Pawn instead.


Looks like you could easily employ an Event Dispatcher here:

image

Assuming the player clicks the wrong widget button, bind its onClicked to the actor that created the widget. If you’re not sure how that works, do show how this looks like on your end:

if they answer incorrectly

Am not sure if you are the same person, but here a similar post: Incredibly simple actions and logic, I just don't know how to script it - #2 by Arodi007