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 do I kill character if he is hit by destructible mesh piece?

I have an AI character that wanders around, and you can destroy things around the map. So, I want it to die if it is hit by a piece of destructible mesh, but using the "on component hit" function kills it just by walking into it even if it's stationary. Is there another way to do it?

Product Version: UE 4.16
more ▼

asked Jun 13 '17 at 12:12 AM in Blueprint Scripting

avatar image

26 6 11 11

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

Hello Dagaumph Games,

I think the best way is to use the appy damage function(s).


Apply Damage alt text

Event Any Damage alt text

applydamage.png (163.8 kB)
eventanydamage.png (61.7 kB)
more ▼

answered Jun 13 '17 at 09:09 AM

avatar image

Sertac Ogan
1.5k 30 10 46

avatar image Void_Gabe Jun 13 '17 at 01:52 PM

Thanks! That answered another question I had!

avatar image Sertac Ogan Jun 13 '17 at 01:54 PM

You are welcome. I hope helpful.

avatar image Sertac Ogan Jun 13 '17 at 02:01 PM

Do not forget to mark if the problem is solved. Other people may experience the same problem. For this can look link.

avatar image Void_Gabe Jun 13 '17 at 06:10 PM

Well... Ok. The game I'm making has you robbing buildings by blowing up holes, shooting guards, and stealing things. If the player, or the guards are hit by debris from a destructible mesh, I want them to die, but I also want them to walk over them after they're destroyed. How would I do that?

avatar image Sertac Ogan Jun 14 '17 at 08:07 AM

Sorry I do not know exactly what you mean. :)

avatar image Void_Gabe Jun 14 '17 at 04:52 PM

So I want the guards (blue guy) to die if they are hit by debris (figure 1), but I also want them to walk over the debris if it's not moving (figure 2). I tried the hit event on the guard, and it died if it was hit by debris, but it also died just by walking into it. If that makes sense.alt text

example.png (19.4 kB)
(comments are locked)
10|2000 characters needed characters left
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