Gun recharging

Hello, guys.
Can anybody help me, please.
I want to implement a recharging / reload to my gun.
What I have now:

Curr.ammo is increasing, but AmmoMax not decreasing, and I want it.
And I dont know how correct Im doing it, maybe you prompt me another way.

What should ammomax be decreasing by? I’m surprised curr. Ammo is changing at all as the middle branch in your code is effectively doing (ammomax - curr. Ammo) + curr. Ammo which if I’m right would just be setting curr. Ammo to be ammomax. If you give me specifics of how you want this to work I could help more.

It sounds like you’re using MaxAmmo for two different things: The amount of ammo you have to reload with, and the amount of ammo the gun can hold.

Try something like this: