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"

Enemy Health Blueprint Help - Blueprint Beginner


Ive been going through a book trying to create a fps in Blueprint in UE4.7.6. I have my enemies scripted to be destroyed after three hits and play explosion effect. Though they keep getting destroyed on one hit, I dont know if I have scripted it wrong or have not clicked something correctly but I have been following the book word to word. Can you guys see if there's anything wrong with the script and help me fix it. I would grateful for the help Im only just getting to grips with Blueprint.,

Images below: Part1



Thanks again am very grateful for any help.

Product Version: UE 4.8
capture3.png (156.2 kB)
capture4.png (166.8 kB)
capture5.png (22.0 kB)
more ▼

asked May 18 '16 at 03:11 PM in Blueprint Scripting

avatar image

3 1 2

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

2 answers: sort voted first

lots of games trigger a moment of invincibility when enemies or players get hit, to make sure they don't take multiple hits from the same attack. to do this, you could put a gate node right in front of the event Hit, which goes to a sequence that closes the gate, then goes to a delay, which opens the gate after .2 seconds.

more ▼

answered May 18 '16 at 04:46 PM

avatar image

9.6k 320 205 450

avatar image ScottSpadea May 19 '16 at 01:01 PM

you only need 1 gate. alt text

avatar image Zkelz May 19 '16 at 01:35 PM

Not dying now after the change. Thanks though I think its getting near is there anything I did wrong? alt text

capture6.png (106.5 kB)
avatar image ScottSpadea May 19 '16 at 01:46 PM

the gate should start open, so uncheck start closed.

also, instead of doing this on EventHit, it should probably be done on EventAnyDamage or EventPointDamage. the projectile can get other actor it overlapped or hit, and ApplyPointDamage.



avatar image Zkelz May 19 '16 at 02:04 PM

Thanks Man a lot really grateful to you and your help.

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

Thanks for responding, I tried the below I think I may have miss interpenetrated due to my lack of knowledge. Could you tell me what I have done wrong as now the enemy doesn't take any damage at all. Sorry to be at such a novice level Im trying to get better. I really want to get this working to im very grateful for the help.

alt text

capture6.png (133.6 kB)
more ▼

answered May 19 '16 at 10:11 AM

avatar image

3 1 2

(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