how i can save the ammo when i sawp guns

have this bp that i when its in reload it calculate how much ammo will remove from max ammo
and when i sawp guns and come back to the one i shoot or reload the max ammo and current ammo get back to default
can u give a way to solve it ?? thanks

When you swap, put the correct numbers into variables, and then use the variables to set it again when you swap back.

1 Like

i use structure in it


I Hope if it was this easy :') but i used structure and i got stuck with the ammo when i sawp

Even if it is a struct, I think you can still do the same thing, it would just be more work.

The temporary ammo variables would just be getting from/setting the ammo variables in the struct instead right?

Yes i did put the pic of the bp if u want to check it the current ammo and max ammo
but i did try to do set members in weapon_Data to Break weapon data and in the break i put current ammo and max ammo it didn’t work

Well, if outside variables don’t even help, then I’m not sure what to do either. This is kind of strange.

1 Like

i know for fact that the solution is by using variables i just don’t know how to use it correctly