Thank you so much Heathclose, but i didn't understand it, What i want is player has to collect bullets then only he can use so if u can explain in detail that would be very appreciated. Actually I m very new to BB so don't have much idea. Thank you again.
you can use the Button to display the amount of ammo you have if you set your shot as an action using the button and but it looks like the only way to refill is to restart. what you need is a way to make picking up a object replenish the remaining uses of the button.
Create a action button on the UI for the shoot Action. The button you can then use to set the amount of uses which you can adjust it will also display the number of uses left on the button. Create an Action with you shooting animation in it and include character bullet object in it add component spawner 9999 That`s get you a button with an ammo counter which will rest ammo on death i`m still working of a action to replenish the ammo. This solves half your problem ill left you know if i figure out how to replenish ammo i want it for my game as well.
Use the animation for you attack as the action In that animation drag in an object (your Bullet) make that object a character bullet add component spawner
Use your character attack animation if you have one if not just use the default character animation drop it into Build box and select Action