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"

Why my enemy dies in 1 hit ?

I made a enemy that needs to be die at 5 hits but he dies in only one hit why is that happening? here is the blueprint for damage on enemyai and here is the projectile blueprint. There are 5 images first 3 are for enemy ai and last 2 are proctile . here is the tutorial which i made from watching https://youtu.be/4YMI5RhHVxs

alt text

[1]: /storage/temp/65229-paint+ue4+cr.png

Product Version: UE 4.9
Tags:
more ▼

asked Nov 02 '15 at 01:07 PM in Blueprint Scripting

avatar image

badass gamer
11 3 8 11

avatar image badass gamer Nov 02 '15 at 01:09 PM

here is the last picture of projectile blueprint alt text

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

3 answers: sort voted first

Hello,

Following the steps shown in the video you've provided, I see some major differences between your blueprint and what is shown in the video. Can you explain if you're trying to make any alterations to the original blueprint shown in the tutorial?

more ▼

answered Nov 09 '15 at 09:17 PM

avatar image

Sean L ♦♦ STAFF
43.5k 485 152 442

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

All blueprints aren't shown but as I see you are calling Affect health and doing destroy component, you shouldn't do that: 1) Delete destroy component node, 2)Go to affect health function, do your affect health thing, then add a branch:
if health>0 -> Do nothing,
else if health<=0 -> Destroy component

more ▼

answered Nov 02 '15 at 01:13 PM

avatar image

SongOfDeath
87 20 27 32

avatar image badass gamer Nov 02 '15 at 01:41 PM

you can see all these blueprint images if you click on below the tag on my post. and i didnt get how to do this "if health>0 -> Do nothing, else if health<=0 -> Destroy component"

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

In the 4th picture (https://answers.unrealengine.com/storage/attachments/65242-projectile%20ue4%20cr1.png) You have written the Function IDamageable wrong, maybe that is the problem?

more ▼

answered Nov 02 '15 at 01:54 PM

avatar image

Janexs
26 1 1 1

(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