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"

Event on hit for character mesh

Hello, everyone. I have been noticing that event on hit for a character mesh is only working under a certain condition where I have to directly hit character's chest. Does anybody know how to change this so I can fire the event even if I hit the character's mesh somewhere other than character's chest?

Product Version: UE 4.14
more ▼

asked Aug 03 '17 at 12:22 AM in Blueprint Scripting

avatar image

Mason Gu
24 2 5 11

avatar image Mason Gu Aug 03 '17 at 02:19 AM

I figured out that if I simulate character's physics and destroy capsule component I can trigger the event without the certain condition.

avatar image Mason Gu Aug 03 '17 at 02:51 AM

Alright seems like the capsule component was the one that interrupted the hit event. If I hit character's mesh that is outside of its capsule component, it fires off the hit event perfectly.

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

1 answer: sort voted first

Probably the capsule component is set to block whatever you're using to collide with the character, if the object hit's the capsule component first (and they block each other) then the object won't hit the character mesh, you can set the capsule component to "ignore" or "overlap" whatever object you want to collide with the skeletal mesh.

more ▼

answered Aug 03 '17 at 03:15 AM

avatar image

1.1k 31 17 66

avatar image Mason Gu Aug 03 '17 at 03:45 AM

Yes, thank you very much. I have noticed that just now and learned a new valuable lesson. I set the collision of capsule component as no collision and it works perfectly!

(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