Here’s the set-up: I have a death/respawn system and a health system. Nothing too complex, just subtracting a number from a health variable on any damage, when the HP becomes 0, it destroys the actor.
This is my respawn player event in my FP game mode
This is where I override the destroyed event for my character
My character’s begin play
Now that WB health widget is just a canvas and an image. Whenever the character takes damage, the image changes (to simulate the idea of a helmet breaking).
Here’s the event graph
And here’s the function bound to the widget image material (I hope it’s visible)
Which is all fine… Until my character dies, then my screen just turns to plain white. If I removed the IsValid branch in the GetLowHealthBrush fnc, I do respawn, but I get “accessed none” errors on that function.
I tried this
But now when I respawn, I don’t get the same effect as earlier.
What am I missing?
Side note: I tried adding a breakpoint in that IsValid branch and the game refuses to start at all.