So, I’m trying to access a variable from a blueprint and use it on my hud widget, and It’s not working, I’v been working on this for like two hours, and I don’t understand it…
The error is "Accessed none “K2Node_DynamicCast_AsThird_Person_Character” from node “Update Health” in graph “Event Graph”.
I think you might have to add another cast node between your EventTick and the UpdateHealth function. Or… I see you’re already storing the casted reference, so pass ThirdPersonBP into the GetHealth node.
Your problem is that you need another cast because you try to reference the same cast in 2 different events. Pass your ThirdPersonBP.health to your update health function but first make sure your ThirdPersonBP is != null. If nothing happens, it means your ThirdPersonBP didn’t get set properly.