NokiMo
CodeLikeMe
CodeLikeMe

patreon


Unreal Engine Grenades - Cancel Throwing (ALS #43)

This is episode 43 of the third-person shooter series based on Unreal Advanced Locomotion System. We have already implemented a throwing system that allows the player to throw grenades and rocks. But once the player press and hold the throwing button, there is no way to cancel throwing. So, today we are going to implement such a system. When the player has equipped a throwable item and goes to the aiming state where the predicted projectile path is displayed, a tip will appear in the middle of the screen "Press Left Mouse to Cancel Throwing". The input will be the same as the fire input and whatever the button assigned for fire will appear. In this case, it is the left mouse button. If the player presses the fire button, the player character will cancel the aiming animations and the throwable object will be destroyed..

project files

https://www.patreon.com/posts/63654325

Unreal Engine Grenades - Cancel Throwing (ALS #43)

Related Creators