im trying to make an ammo system for my weapon system so far everything is working fine, fire rate bullet spread recoil damage except for ammo system and ammo pickups
i have my weapons system based on on weapon parent BP and i create child blueprints off that one
i got ammo sort of working but i cant get it to work with HUD and i cant make ammo pickups i tried but it did not work
Can you list what you’ve tried and include some screenshots? I’ll be happy to help but it would be best to help you along with what you’ve already done rather than starting from scratch.
You need to somehow get a reference to your ammo count in your HUD widget. Perhaps you could pass in a reference to your weapon when creating the widget, and then bind the text to your ammo count.
ok i set it up in the widget like it says in the docs but it just shows zeros in the ammo count, i cant get the ammo pickup to destroy or add to my ammo on the gun
To test out your functions, such as picking up the ammo pickup, try using some print string functions to see if everything is working correctly so you can see the amounts for these variables as the logic is moved through. Also, can you post screenshots of how you’re trying to implement your ammo into your HUD? You should be able to set up a binding for the value on the HUD and then cast to your Weapon_ParentBP to get the Current Overall Ammo as you’re doing in the function above.