This is episode 66 of the third-person shooter series based on Unreal Advanced Locomotion System. We have already implemented a grenade-throwing mechanism in our game. Today, I am going to add a grenade count and the relevant hud elements to the character so that player will not be able to throw grenades infinitely. If the player doesn't have any more grenades in the inventory if the throw button is pressed again, a "no grenades" warning will appear in the middle.
.
project files
https://www.patreon.com/posts/63654325