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"

How can I create a widget and whenever a button is pressed make it visable

![alt text][1]

I know my way may not be the best but its what I figured out so far. So my goal here is to select a projectile create a specific widget with an ammo count and a specific look for the projectile im using. But when i switch between projectiles it resets the ammo count which i dont want. So i know my problem is i cant recreate the widget every time i press the button..so how can i create the widget and just set it to be invisible till the button is pressed. Hopefully that makes sense..thank you [1]: /storage/temp/272509-screenshot2.png

Product Version: UE 4.22 Preview
Tags:
screenshot1.png (135.9 kB)
screenshot2.png (173.3 kB)
more ▼

asked Mar 27 '19 at 01:20 AM in Blueprint Scripting

avatar image

Carnage97
5 1 2 4

avatar image ThompsonN13 Mar 27 '19 at 01:43 AM

when i switch between projectiles it resets the ammo count

why not store the ammo count in your character then just have a reference to the character in the widget.

also you could just set the visibility of the widget to hidden.

avatar image SupDeity Mar 27 '19 at 05:06 AM

You gotta store those variables in your player. storing in player only keeps those for the current game. if you want to make the ammo amount be saved and reloaded every time you launch your game then you can look in to Save Game tutorials on youtube.

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

0 answers: sort voted first
Be the first one to answer this question
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