How to hit Mutliple Actors with one Trace?
Silly question here, but I have been having issues getting something work. I have a character apply damage on a click and then check to see if it hit. If it does, it applies damage. That's well and good, but how do I get it to hit multiple different targets at once? Right now I have it run the check 3 times and add any previous hits to an array to be ignored, but surely there must be a better way?
asked Jun 06 '18 at 03:53 PM in Blueprint Scripting
Multitraces are stoped once they hit a "blocking" obstacle. If you trace for pawns and their collision is set to block, the trace will stop once it hit a single pawn. What you want is a new collision channel that does not block your trace but is set to overlap only, that way your Multitrace will continue after hitting (overlapping) the first pawn.
answered Jun 06 '18 at 06:13 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here