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 to hide or display enemy health widget on damage

I've created an enemy health bar using widgets, and I'm wanting to display it only when that enemy takes damage from my character, and then disappear again a few moments after the damage was taken. I've got everything else working correctly, I just can't figure out the logic to make this happen. Thanks.

Product Version: UE 4.8
Tags:
more ▼

asked Jun 24 '15 at 04:46 AM in Blueprint Scripting

avatar image

mcgillchris
18 2 4 5

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

1 answer: sort voted first

HI Mate

Start with it hidden.

alt text

Then depends on how you are doing damage. But something like this should work.

alt text

Narg

capture.jpg (21.0 kB)
capture.jpg (53.7 kB)
more ▼

answered Jun 24 '15 at 08:22 AM

avatar image

Narghile
1.7k 74 38 110

avatar image mcgillchris Jun 24 '15 at 11:36 AM

Thanks! That looks really similar to something I was trying, but I couldn't get the "event any damage" node to work. How do you set it up to work?

avatar image Narghile Jun 24 '15 at 11:57 AM

Hi Mate

can you post you cause damage and receive e damage scripts?

P.s. you commented on a question with an answer. keeps answers down if you can. you can convert it.

Narg

avatar image mcgillchris Jun 24 '15 at 12:50 PM

This is on my character blueprint. I have a different, more robust receive damage method for my character.

alt text

avatar image Narghile Jun 24 '15 at 02:18 PM

Try this

On apply damage - put print string "Out", on receive damage - print string - "In"

Narg

avatar image mcgillchris Jun 24 '15 at 06:00 PM

Think I solved it now. Thanks for the help!

(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