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"

AMMO CAPACITY

Hey all ... I am making a first person shooter game and I have made a fully functioning healthbar but I have followed the same process for ammo capacity but I can't figure anything out, I've started anew as a result and some sort of directions would be greatly appreciated ... thank you if you can help (also I'm a noob so pictures and simple words would be appreciated)

alt text As you can see I have already a fully functioning HUD

alt text And here is the text item

alt text As you can see I haven't progressed at all with the node

Product Version: UE 4.18
Tags:
2017-12-12-1.png (4.7 MB)
ammo-capacity.png (110.1 kB)
node.png (75.5 kB)
more ▼

asked Dec 12 '17 at 02:32 PM in Using UE4

avatar image

kesterton
3 1 1

avatar image cppkyle Dec 12 '17 at 08:48 PM

Cast to where your ammo variable is and then for the left number put the remainingAmmo variable and the right side the maximumAmmo variable and each time you reload set the max ammo to a number under.

(comments are locked)
10|2000 characters needed characters left

2 answers: sort voted first

Cast to where your ammo variable is and then for the left number put the remainingAmmo variable and the right side the maximumAmmo variable and each time you reload set the max ammo to a number under.

more ▼

answered Dec 12 '17 at 08:49 PM

avatar image

cppkyle
14 1 2 4

(comments are locked)
10|2000 characters needed characters left

Hi again. So I assume this is still the same widget as before.

The problem here is you are setting the Return Value to blank, so its going to show up blank. You'll need to plug in the variable representing your ammo count

more ▼

answered Dec 12 '17 at 08:10 PM

avatar image

16bit
329 7 8 12

(comments are locked)
10|2000 characters needed characters left
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