Announcement

Collapse
No announcement yet.

Widget not displaying a health bar correctly

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • replied
    Problem solved thanks guys

    Leave a comment:


  • replied
    Okay i did it and it is not valid, i am calling the Character not the actor in the world.

    Leave a comment:


  • replied
    will do thanks guys

    Leave a comment:


  • replied
    EvilCleric is on point. Where are you setting the slime var in the widget to the slime actor in the world? add an isValid? node in your get percent. On isValid print string valid and on is not valid print string not valid. You will narrow down the problem.

    Leave a comment:


  • replied
    Use Print String to print the "HPs" and the "slime" values in the Widget's Tick function.

    Leave a comment:


  • replied
    The most likely causes are:
    - the "Slime" variable in the widget is null
    - either "Current HP" and/or "Max HP" are somehow always 0 (which they are if Slime is null)

    That's why I'm asking: how and where are you setting "Slime".

    Leave a comment:


  • replied
    The answer to all those questions is yes. I am convinced that no calls to the slime are working bar the it calling itself and through the map blueprints. do you know what could make this happen?

    Leave a comment:


  • replied
    Is slime correctly set in the widget? How are you setting it?
    Are the bar colors right?
    Have you tried with different "Slime Current HP" values?

    Leave a comment:


  • started a topic Widget not displaying a health bar correctly

    Widget not displaying a health bar correctly

    The slime health bar is supposed to be at 100% but is consistently on 0. i suspect that the widget is not referencing the slime properly any suggestions?
Working...
X