Hey, so I have just set up my basic ammo counter for my game, it works for only the pistol but all of my weapons are child actor components that are attached to my player character model and all of their stats are stored within the player character blueprint (example of variables: pistol ammo current, pistol ammo min, pistol ammo max, shotgun ammo current, shotgun ammo min, shotgun ammo max). I am trying to figure out, since the ammo values are stored within the player character how can I (when I switch weapons, this works with my debug commands so its just a matter of getting it to show up correctly on screen), get the ammo counter to switch dynamically when I switch from pistol to shotgun?
Here is a screenshot of the blueprint script that shows up on the ammo counter, surprisingly this works in displaying only the pistols ammo.
Any help would be wonderful! Thank you all!
Realized this might be some more useful information: I handle gun swapping with a GunInventoryArray which I pass through the parent gun so that it knows which gun is in the players hand.