Can I pass variables to a widget component and how?

Ok sorry, i do have a few more components that are rendering at the same time. i thought all the texts and the percent bar were in the same Widget Component,but it’s been a while i don’t touch this part of the project and i forgot it, my bad! I had 3 text renders with the name, employment and level of the npc, and they were replicating because i had the binding already on the Widget Component, a pretty big mess :smiley: . So now I only have the Widget component and everything in the component hyerarchy is fine now.

However it seems that the Health Bar is not being refreshed properly once i apply damage. I hit attack one time (each attack has 10 base damage) and the percent bar goes from 1 to 0 instead of 0.9. This is the binding i created:


and this the gameplay in which I attack one time and the bar goes to 0 and at the end i do 10 attacks and kill the enemy, so the damage calculation is good but the visuals don’t match. When the sound is played, it means that i’m attacking (it’s printed aswell as “I Attack” prompt)

I have current and max health because it’s a RPG project and you and the enemies can level up and get more max health. Both are Integers. Do i need another variable for each one (current and max health) on a 0-1 range representation?