Picking up and throwing objects and enemies (non-TPS/FPS)
If I wanted this little guy to be able to pick up that trash can object (and eventually an enemy character) and throw it at other objects/enemies, what would be the best way of going about it in BP?
I've looked through many tutorials that all seem to be based on FPS/TPS games with a line trace guided by the camera. As my character moves about independant of the camera (it's a multiplayer Brawler game), I imagine a different method is required.
For enemies, they will be animated while grabbed and lifted off the ground but still move around with the player so the throw can be "aimed" at things. Throwable objects might hide health pickups, but if that's too difficult/costly, I will reserve that for the smashables (like the arcade cabs in the back which can't be picked up but can be destroyed).
asked Aug 05 '15 at 11:25 AM in Blueprint Scripting
Line traces should work depending on circumstances but ultimately you just need to get the characters forward vector and "throw" the objects in that direction. Those tutorials you watched I'm sure went over how to set a projectile velocity and physics so I won't go into that. To see what the item hit after throwing just use collisions and react accordingly.
Hope this helps! If it did please do me a favor and accept the answer by clicking the check mark located below the arrows next to the answer. Thanks!
answered Aug 05 '15 at 12:24 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here