Getting ammo for my gun

Kibrjr

New member
Hello! I would like to get ammo from the ground and automatically add to the ammo count of my gun. I also want to, when I pick up my gun from the ground, it comes with some ammo. How can I accomplish that?
 
You can look at the demo scene for this. Any shootable weapon comes with ammo. In the ItemPickup component you define the ItemDefinitionAmount. In the demo, there is always a weapon plus ammo defined on this component. You can leave out the weapon and simply define a pickup just for ammo.


 
Top