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"

HUD BP Branch only triggers once

I'm trying to send a pop up notification "You Killed " + Character Name that triggers from the death of the character blueprint. When the Character's HP <= 0 the flag is set to dead which then triggers a custom event in the game mode blueprint that casts to the instigating character (the player that killed the current character). The Game mode BP then sets the killnotice flag on the instigating character, which will then trigger the HUD BP to pop up the "You Killed " Notice.

The curious thing is that it only works once on the client side, server side is fine.

After it works once on the Client, I noticed the KillNotice flag gets set sucessfully by the game mode blueprint, but for some reason it's not triggering the Branch Node in the HUD BP. I'm not sure why it just stops after one time.

Things to note, the incoming nodes for Character BP is EventTick (so every tick it's checking for death) incoming node for HUDBP is EventDrawHUD (should be checking the flag each draw update)

Thanks for any insight to this!!

Product Version: UE 4.10
Tags:
more ▼

asked Nov 30 '15 at 03:15 AM in Blueprint Scripting

avatar image

Exreph
51 3 4 8

avatar image Exreph Dec 01 '15 at 01:43 AM

I also thought this might be the case, but it still behaves the same even after resetting. Once a character dies it gets destroyed and respawned as a new actor, maybe that has something to do with why it only works once, but I still can't understand the reasoning for one time.

One other thing to note is that if the character that got the kill, then dies, it will work again only once when that player gets another kill.

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

1 answer: sort voted first

Try reseting your "DoOnce" node on the clientside after the notification has been sent.

more ▼

answered Nov 30 '15 at 09:57 AM

avatar image

syyfilis
46 4 4 7

(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