enemy health bar variable, failed to find property
Enemy health is working, but the health bar isn't. I've tried casting the character health variable to the return node by binding the variable. It was a no go. Now I have a float that is defined in the UMG graph handling the return value.
The health bar is added to the enemy AI Character as a component. However, when I try to cast to the enemy health bar. The set variable has the message,"failed to find property" in the variable details.
if I change the Health Bar filler value manually, the health bar percentage updates, but I cant get the cast to work for some reason. I've been all over the forums and the Answer hub for the last two days trying to figure this out to no avail. Any help would be appreciated.
asked Apr 20 '15 at 08:21 PM in Blueprint Scripting
Is your Helathbar a component, or an Actor?
Trying adding a ChildActor Component, and then set it's Actor to your Health Bar. When using it, get the ChildActor, get it's Actor, then cast it to your health bar.
Also, did you try dragging off from your HelathBar component onto the graph?
Follow this question
Once you sign in you will be able to subscribe for any updates here