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"

Apply Damage to Destructible mesh not working

Hello

In my project simple Apply Damage from projectile to Destructible Mesh not working as I expected. I can break destructible mesh with Apply Radial Damage only, not Apply Damage. I was sure simple Apply Damage should work and I think it's better for performance.

Maybe I missed some settings or just this should be only with radial damage?

Thank you!

Product Version: UE 4.14
Tags:
more ▼

asked Feb 08 '17 at 05:42 AM in Blueprint Scripting

avatar image

Vaheva
1.3k 24 25 49

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

3 answers: sort voted first

ok, answer is, with destructible mesh only point or radial damage working, not 'clear damage'. Let's say this is enough for answer.

more ▼

answered Feb 19 '17 at 06:28 PM

avatar image

Vaheva
1.3k 24 25 49

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

Try this out on your DM actor. If you have a DM with multiple depths you may want to cast to the component of the DM that was hit first.

alt text

capture.png (113.5 kB)
more ▼

answered Feb 08 '17 at 07:27 PM

avatar image

ErrinMiller
439 15 6 21

avatar image Vaheva Feb 08 '17 at 08:07 PM

Hi. I assume I can check hit on component, but I was sure here is simpler way. I have already hit actor in break hit. And with Radial Damage I even not need to show hit actor to apply damage. alt text

This is just part of bullet hit code, I removed rest just because here was too much other actions.

So, only way is checking damage on actor not from bullet break hit?

damage.png (59.4 kB)
avatar image ErrinMiller Feb 08 '17 at 08:44 PM

Add a Cast To Destructive Component execution before you apply damage, and then drag off of the As pin to get the Apply Damage; your Apply Damage should have a Target is Destructible Component tag.

You can run your regular Apply Damage off the Cast Failed if it is working for everything else in your game.

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

alt text

alt text

This is my code for a toy tank game with the first photo being the bullet checking what object it hit and applying damage to the object. the second photo is the tank object taking the damage and - from overall health. hope it helps

bullet.png (134.6 kB)
object.png (154.0 kB)
more ▼

answered Feb 08 '17 at 07:39 PM

avatar image

sammeboy
0

(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