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"

visibility hud question

Hi all, i already created a question mentioning this problem. This is the link to the question i have. https://answers.unrealengine.com/questions/599221/how-to-display-health-bar-on-hud-when-picking-up-i.html

i created a HUD visibility event but i don't know what i'm doing wrong. I have included a screenshot of what i want to create ( First screenshot HUD Problem)

In the second screenshot ( The Blueprint ) i have a blueprint event setup in the pickup blueprint. The problem is that the event fires but the visibility does not get set. PS: Yes i have toggled the icon and the progress bar's visibility to hidden in my HUD widget and tested this out but it does not work.

Questions: 1. Do i need to create a binding on visibility in the HUD Widget? 2. Where do i need to place this blueprint event? 3. With what node do i fire the event? I don't think the actor begin overlap (sphere collision) is required. 4. The HUD nodes in the blueprint are references to my HUD. I don't know if the nodes i use are wrong

If anyone has a idea on how to get this working please share it. And make sure to include some blueprint screenshots ( would be nice ) :-)

Any help is greatly apreciated.

alt text

alt text

Product Version: UE 4.14
hud problem.png (1.2 MB)
the blueprint.png (330.9 kB)
more ▼

asked May 14 '17 at 01:53 PM in Blueprint Scripting

avatar image

20 9 9 11

avatar image gandalfini25 May 14 '17 at 01:57 PM

Oh and i'm on the third person template with a ball character. :-)

avatar image gandalfini25 May 15 '17 at 05:28 PM

I found the solution to my own problem. Here it is:

Firstly go to https://answers.unrealengine.com/questions/599221/how-to-display-health-bar-on-hud-when-picking-up-i.html and scroll down to the middle. Create the "HUD Reference" node and then do the following.

In the widget blueprint i set the health box to hidden, then in event graph of the widget i created a "custom event" and named it "Toggle Visibility" ( red node ).

I connected that to "set visibility" ( target is widget ). Set it to "visible". In the target i have called a "get health bar" and connected it to target of "set visibility".

After that i created a powerup blueprint, i have added a "sphere" and a "sphere collision" component. I clicked the "sphere collision" and in the details under events i clicked on "oncomponentbeginoverlap".

Connected "oncomponentbeginoverlap" to a "get all actors of class" node, On the "out actors" node i connected a "get" node, after that i connected tha "hud reference node" and after that i connected the "toggle visibility" ( blue node ).

Maybe this will help you.


(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