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"

Assistance with Progress Bar : Technical Questions

Good Evening, I am making a progress bar that when two team's are on an objective they determine the progress bar value. For example team has one player and team two has one player which will mean 0.50 on the progress bar. However, say in the following scenario I have two players from team A and one player from Team B then the progress bar attains the value 2/3. Which is good but i want the bar to be showing 2/3 for team A but 1/3 for team B. How can this be done ?

Product Version: UE 4.18
Tags:
more ▼

asked Jul 17 '18 at 12:17 PM in Blueprint Scripting

avatar image

Beefie123
3 1 3

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

3 answers: sort voted first

The way you are doing it looks tricky. Lots of maybe this, maybe that, what if this but not that.

Instead would it be easier to simply send both scores in the MultiCast and set both progress bars where progress bar A percent = Team A score divided by max score, progress bar B = Team B score divided by max score?

Max Score in your situation seems like it would be the total of both teams scores, ie Team A score + Team B Score. like a kind of zero-sum game.

You can do it your way too but It looks like the branching logic is telling it to only set team B based on Team A logic.

more ▼

answered Jul 18 '18 at 07:01 PM

avatar image

mightyenigma
3.8k 18 23 20

avatar image Beefie123 Jul 19 '18 at 11:52 AM

I might just do this. It seems like the easiest solution. However, I need to make it so the progress bar A stay's on Team A's screen. and progress bar B stay's on Team B's screen. Right now I have it set as an eventoverlap create widget view hud.

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

You can set "background" too. Look under the drop down for "style".

alt text

progress-bar.jpg (188.4 kB)
more ▼

answered Jul 17 '18 at 01:49 PM

avatar image

Nebula Games Inc
5.4k 28 9 15

avatar image Nebula Games Inc Jul 17 '18 at 01:50 PM

Also not exactly sure from your description what you're aiming for with these partially filled bars but you can also use an overlay with 2 progress bars on top of each other and set their fill individually if that would better suit your needs.

avatar image Beefie123 Jul 17 '18 at 08:58 PM

https://i.imgur.com/OmBjcGN.png

I hope this clears up what I mean.

Right now both teams see the same widget bar.

https://youtu.be/JiZon9jDTco

Team one is americans team two is russian. as you can see the russian who has only 1 player sees a widget 2/3 of the way full. I want him to see it full up 1/3 instead.

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

I believe your problem lies not in the question how to compute the value but in the differentiation of OWN_TEAM vs. ENEMY_TEAM.

Try to compute the values own_team_score and enemy_team_score. Then do the same math you are doing now but replace the Americans with own_team_score and the russians with enemy_team_score. That should do the trick if I understood you correctly.

more ▼

answered Jul 19 '18 at 12:27 PM

avatar image

Wendy-Kun
6 1 5

(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