Enemy Health Bar not Binding
I have read all the questions and replies here about this and yet still no answer. I am trying to bind a widget health bar to my enemy AI. It appears above his head, facing camera, all good. It does not display the health. My hero displays his health, no problem, so I am assuming it is how I am approaching the Event Graph in the Widget BP. I have a feeling it has to do with Object being cast to CastToZombieCharacter. Object is a public variable. Here are some images. I think its a really easy step I am missing, if anyone could point it out, that would be awesome!
asked Jan 03 '16 at 11:19 PM in Blueprint Scripting
What are you assigning to Owner?
Have you considered creating a base class (or interface) that handles every characters health and damage mechanisms?
Once you have cleaned up your parameter names and leveraged a base class for commonality, you should just have to connect your target hit result to your players HUD "Event Construct" event. Next, set up an event tick that queries the health of your "focusedActor" that will update itself accordingly.
answered Jan 04 '16 at 04:38 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here