Gun ammo system for my FPS game

i need help with my ammo reload system. i want to make it so that if a player reloads, and the player still has ammo left in the clip, it only takes the ammount of ammo needed to make a full clip.(reserve ammo system). also, i want to make it so that the player only has a limited amount of ammo, and they have to get more by picking up ammo drops.(limited ammo system). how would i do that?

Hi @quantum,

That’s a lot of systems that you are asking about. I would encourage you to go through the PlayCanvas manual and examples to feel more comfortable with how things work, and if possible take a JavaScript course there are many good ones online.

https://developer.playcanvas.com/en/user-manual/