Progress Bar Widget Component won't update percent

Hello. I have stumbled upon strange situation. I have my ai agent with health bar above him as widget component. When I apply damage on him, I want the reduced health to be displayed in the bar. The reduced health value gets transported properly up to SetPercent node within the widget, I checked. However, visually nothing changes. What might be the issue?



Even when the agent dies, the bar is still full…

Hi, 2 things come into my mind:
-If this is 3d widget component, maybe you set it to redraw manually and it’s updating, but it’s not being redraw?
-Make sure you didn’t copy style so Fill and Background Image aren’t the same in the Progress Bar

3 Likes

Hey @m_1911_45.acp1,

One more thing to look at. Is your “HP Left” variable updating correctly? How often are you calling the function to alter that amount?

Any additional info you can provide may go a long way in solving your problem!

1 Like

Hi. As I said my logic delivers correct HPLeft values up to SetPercent node, so I guess the problem is about the widget itself.

God, You are so right! For some reason, I suggested checking RedrawManually earlier. I have unchecked it and everything is alright now. Thanks a lot!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.