Hi there..
I would like to know how to go about making a throwing weapon similar to a boomerang.
The idea is that you would hold an aim down, move the mouse to highlight targets, and when you press fire, the targets would get hit in order. When all have been hit, the boomerang would return to you.
Similar to the crossblade in darksiders
Any ideas?
Thanks for any help.
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