Making a boomerang weapon that hits multiple targets and returns to you.

i made a mechanic like this for my first project in college. So for the base functionality you wanna do a line trace whilst aiming. if the line trace hits an actor of class add them to an array and attatch a worldspace widget to them. add a check before adding them to the array to make sure that that actor is not already in the array. make sure to also create an array of references to all the widgets you make so that you can delete them if you unfocus. then when you throw your boomerang make sure its got projectile movement and has a high initial velocity and speed. set the actor rotation of your boomerang to face the look at rotation of the first actor in the array you made of the targets. then when you hit it do the functionality {damage or hit button} then move to the next item in the array and face that one and so on. when you get to the last item and you hit it set it to aim towards player pawn {guessing since its a boomerang}. if you find that the boomerang is hitting them in reverse order before starting the movement you can reverse the array (moving arrays sometimes flips them)

2 Likes