I created C++ ammo counter, which basically lets the player shoot only 30 times(like a magazine), I was trying to add the player ammo with the UI Widgets, however, I get 0 when I press play.
P.S The ammo stop system works, it does let the player only shoot 30 bullets, and it doesn’t matter if he does it in full auto or by pressing a lot of times. The problem I have that the UI Widget shows 0 all the time doesn’t update how much the player has ammo or used.
Ammo system is in Weapon class, so in UI widget I cant cast it to BP_Player(Character blueprint)