How to make it so that when I press the G button, will my character throw away the weapon he is holding?
I already have a PickUp system, but I want that I could throw out the weapons that I have in my hands by clicking on the button, how do I do this?
asked Mar 03 '18 at 09:30 AM in Blueprint Scripting
I basically destroy the current weapon and spawn the pickup for that same weapon type. I spawn the pickup near the right hand but far enough away that it doesn't hit the character mesh. That will only look so good but it's the right place to start.
For something more sophisticated you'd want to use an animation of the character dropping the weapon. The button press would trigger the animation (I'd use a montage) and an animation notify would trigger the destroy/spawn process I described above. With this you'd want to spawn the pickup much closer to the hand so it looks better.
If you need details just ask.
answered Mar 03 '18 at 09:53 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here