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"

Player damage from destructible mesh

so, im new on ue4 and currently making little vr project about eathquake....

alt text

i create a level, when delay timer end, the roof (destructible mesh) will collapse and damage the player by hit event the problem is the hit event didn't run when player standing still (similiar to this problem), its work perfectly when player moving

this is my physics and collision setting on destructible mesh

alt text alt text

and this is physics and collision setting on player

alt text

i did try: 1 enable emulate physics on destructible mesh 2 change collision setting to overlap between player to destructible mesh to each other, then using overlap event instead of hit event to damage player all didn't work

how to make destructible mesh chunks hit and damage player (either when player standing still or moving) i know this problem is kinda negligible but i want to set this right thanks for your help

Product Version: UE 4.14
ue4 1.png (1.1 MB)
ue4 2.png (27.6 kB)
ue4 3.png (32.9 kB)
ue4 4.png (36.9 kB)
ue4 2.png (27.6 kB)
more ▼

asked Jan 31 '17 at 06:32 AM in Using UE4

avatar image

3 1 3 5

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

1 answer: sort voted first

If you want your player to be hit and damaged by a DM chunk use:

Off Player Actor: OnComponentHit > Cast to DestructibleComponent > ApplyDamage

more ▼

answered Jan 31 '17 at 07:18 PM

avatar image

444 15 6 21

avatar image cptodix Feb 02 '17 at 12:02 PM

works perfectly, thanks :D

avatar image ErrinMiller Feb 02 '17 at 04:19 PM

You're welcome.

avatar image Dieinthedark93 Nov 22 '17 at 04:28 PM

This is probably better asked as a new question but Errin I see you've answered many destructible mesh questions before. I'm trying to simulate shrapnel damage and using the method above almost works for what I'm trying to achieve. How would you go about determining whether the chunks are in motion/in a state of applying damage to the player?

I started approaching it by making an actor have a destructible component with a boolean variable representative of its damage dealing state. Right now if the player walks into one of these explosive actors, the player's onComponentHit triggers, the cast succeeds, but with the explosive in its stationary/no shrapnel flying state, it shouldn't apply damage. Curious if you had a better idea.

(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