Deal damage along shape/mesh etc.
I want to deal damage along an arbitrary shape which should work like a damage volume in a way.
a) Let's say I want to hit a destructible wall and make a star pattern hole in it. I'd imagine I'd use a star shaped mesh that deals damage to anything it intersects?
b) Imagine I have a powerful beam that doesn't deal damage only to the first thing hit (as would happen with a line trace and radial damage for example or a projectile) but i want it to deal damage to everything in an imaginary cylinder around a straight line ahead of me (So all buildings for example would have a hole in a straight line one punch man style). Again I would imagine I use a cylinder and apply damage to anything in it?
Is this possible or do I need to do this another way? Would I need to trace everything manually and apply some kind of damage to every point separately? I dont mind if it's in c++ or blueprint I just want to know whether I can use a custom shape to define where damage is dealt.
asked Feb 27 '16 at 02:27 AM in Blueprint Scripting
There diffrent type of traceing called Sweep
But it's limited to specific shape selection, thats because the way that tracing is computed, complex shape collision computations are... well complex :p
Alternativly you can apply damage via collision overlap, you can get all overlaping actors via this function:
But this might be too heavy function to do on tick.
I linked API refrence, but those functions are on blueprint also
Follow this question
Once you sign in you will be able to subscribe for any updates here