Make a destructible resist damage below an ammount

I’m not currently within reach of my ue4, so this may sound redundant, but is there a simple way to have a destructible mesh resist damage below a certain amount, I know that I could just set its health higher, but I also want accumulate damage, so say I place a bomb on a reinforced wall it might not break with just one, it may take 2, yet I don’t want the player to be able to punch a wall long enough and break it, yet I cant just disable destructible damage for melee because I’ve got smaller objects I’d like to break. Again this is more of a curiosity, since I’m out of reach of the engine

Hi Reactant,

All you should be able to do is adjust the Damage Threshold to a value that you’d like. As an example 1000. Then set the flag for Accumulate Damage.

Next you’ll set your weapons applied damage when it hits the DM. If the damage is enough to exceed the damage threshold it will fracture and destroy the DM. If not, it will take a couple to do so. Let’s say your bomb only applies a damage of 500. It would take two bombs to destroy the wall with the damage threshold at 1000 and the accumulate damage set.

I hope this helps! :slight_smile:

So would the best way to do it be set a really high destructible damage threshold, then make melee do very little damage, the idea was that melee should hurt small things like crates etc, but i dont think you should be able to melee down a wall, i guess setting the threshold so high it just took forever would work

That’s a possible way to do it. You could also use Blueprints and get the hit result, if it’s a destructible that weapon should only apply a very low amount of damage. In the BP you can do a CastToDestructibleActor node from your weapon. You can set it to cast the damage you’d like that way for that particular DM and so on for others.

Again, an alternative is using a higher Damage threshold, but that method wouldn’t allow a mallet that applies a damage from getting through at some point if the player is persistent enough to keep banging at the wall. With the Cast, you can at least set the applied damage from that weapon to be 0 so that no damage is ever applied.

Cool looks like I’ve got some work to do when i get back

If you have any questions feel free to post. I don’t mind helping when I can. If you need an ongoing discussion try posting on the Forums (forums.unrealengine.com). I’m on there often and don’t mind offering the help. Destructibles are a load of fun! :slight_smile: