How to implament locational damage for a tank?
I am trying to add locational damage for specific components of a tanks hull of turret these being static meshes, as tanks usually have most of thier armor concentrated on the front the sides and rear would be more vulnerable to damage (have a higher damage multiplier). The problem is that I would need to find a way to determine witch part of the mesh was hit and apply the according amount of damage.
asked May 28 '19 at 03:43 PM in Blueprint Scripting
you can use on component begin overlap events, hit events only work on the root component. I think each component would need an event but you can use a function to reduce copy/ pasting the code.
I guess the code would be something like health - damage * multiplier.
if(damage - durability > 0) netDamage = damage - durability; return health - netDamage
Follow this question
Once you sign in you will be able to subscribe for any updates here