[HELP] Can't get Health Bar to update, Inheritance problem.

Solved

Hi guys, me again.

Title says it, I have an enemy and its health bar. The health bar appears over its head, but it doesn't update with the health variables.

I get the 'Cast will always fail' error, but googling the solutions didn't help.

Anybody got an idea?

Here are the screenshots:

https://imgur.com/a/nAoO8

UPDATE: Wasn't just an inheritance error, but I changed the math and the variables. Here's the current, working setup: https://imgur.com/a/u2MYl

Hope this helps!

Posted Nov 3, 2017, 2:05 PM UTC · edited

616
Loading comments…