x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Oxygen UI Difficulty

alt text

alt text

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!

Product Version: UE 4.18
Tags:
more ▼

asked Dec 28 '17 at 06:09 AM in Blueprint Scripting

avatar image

Phobie Games
5 3 4

avatar image Phobie Games Dec 28 '17 at 06:12 AM

Btw ignore the errors at the bottom, i was playing around with other stuff to try to figure it out, here is the other screen shot of the widget graph

alt text

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hi,

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 :-)

more ▼

answered Dec 28 '17 at 06:23 AM

avatar image

Vizgin
1.5k 10 10 18

avatar image Phobie Games Dec 28 '17 at 06:35 AM

yeah that is pretty much what i have, i created the bind and the bar and hooked it up as such and still no luck, it just stays full

avatar image Vizgin Dec 28 '17 at 06:42 AM

I just updated my answer based on the new BP you provided in the comment section. See if your problem can now be resolved.

avatar image Phobie Games Dec 28 '17 at 06:44 AM

Thank you! I had no idea it was a 0 to 1. Now I know, again thank you, its working now

avatar image Vizgin Dec 28 '17 at 06:45 AM

You're very welcome :-)

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question