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"

Apply Damage Function and HUD

Hello, I have a simple damage system for my simulator. When a character enters a fire, smoke etc and overlaps a collider the Apply Damage is activate in the PlayerCharacter bp and substracts 0.1 each time the character enters an damage causing area. The problem is that while I can see the actual value of the Health variable drop normally, the HUD progress bar does not perceive the change. When I tested a simple key press health substraction it worked perfeclty. Is there an issue with the cooperation of apply damage function and HUDs progress bars? Do I need to create a simpler damage implementation system I have previously created (when a character collides with a fire an event is tirggered in player character and the health drops. Please help and thank you in advance!

[1]: /storage/temp/112858-hud.png

Product Version: UE 4.12
hud.png (82.8 kB)
more ▼

asked Oct 28 '16 at 05:41 PM in Blueprint Scripting

avatar image

61 2 7 8

avatar image Holybreath Oct 28 '16 at 05:52 PM

Did you bind a progress bar value to function that takes health as param?

avatar image docie Oct 28 '16 at 06:43 PM

Do you mean this one? The OldMale is one of my characters (I also need a way to apply the same HUD to different characters) and the Health is the variable I created in this character bp.

[1]: /storage/temp/112859-hud2.png

hud2.png (93.0 kB)
(comments are locked)
10|2000 characters needed characters left

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