Are there any function OR any way were I can decide how much ammo I want to give the player for a specific weapon? I checked the script reference but couldn't find what I wanted. Could have missed something.
Thanks for the replies. I'm trying to do something like this. Give the player the amount of ammunition that the player had in his previous weapon. As this gives the player a new weapon and takes the previous weapon.
But the problem is, it gives the player the start ammo even if the "self.current_ammo" is less than "chosen_weapon_ammo" when I test it ingame. Why does it do that?
GetFractionMaxAmmo returns a fraction compared to what the player has. What do you can do instead is getAmmoCount(string); This returns total ammounition on the weapon, for example colt has 32 rounds and 8 in clip, and that would return 40. If you want to get the stock just do
GetFractionMaxAmmo returns a fraction compared to what the player has. What do you can do instead is getAmmoCount(string); This returns total ammounition on the weapon, for example colt has 32 rounds and 8 in clip, and that would return 40. If you want to get the stock just do