Oxygen UI Difficulty
Hey everyone, so currently I have a character controller bp with a few variables called oxygen, Deplete rate, and oxygen max. Basically what I'm trying to achieve is oxygen depleting overtime, which is working. The problem I'm facing is that the oxygen ui is currently updating with the oxygen depletion, it continues to stay at max. I am also tried using the bind function to the fill like the docs has shown. At first i thought maybe the actual depletion of oxygen wasn't happening so i tried printing the logic and it appears to be working on that end. Any and all help would be appreciated it!
asked Dec 28 '17 at 06:09 AM in Blueprint Scripting
The progress bar gets a value between 0-1 (Full progress bar is represented by 1 and an empty one by 0). You need to map your Oxygen value to this range or otherwise, any value outside this range will get clamped and therefore may leave the progress bar unaffected. You can fix this by simply dividing the current value of your oxygen by its maximum possible value before passing it to your progress bar Return node.
Hope this resolves your issue :-)
Follow this question
Once you sign in you will be able to subscribe for any updates here