Lets say CA = current ammo and MA = max ammo.
You want to add 5 ammo to CA but CA <= MA.
Use a clamp node (Clamp (float) | Unreal Engine Documentation) :
Value: CA + 5, Min: 0 , Max: MA. After that , set the CA to the return value.
Lets say CA = current ammo and MA = max ammo.
You want to add 5 ammo to CA but CA <= MA.
Use a clamp node (Clamp (float) | Unreal Engine Documentation) :
Value: CA + 5, Min: 0 , Max: MA. After that , set the CA to the return value.