Call of Duty 4: Scripting Reference - Player::SetWeaponSlotAmmo
From COD Modding & Mapping Wiki
SetWeaponSlotAmmo( <weapon slot>, <ammo count> )
Module: Player
Summary:
Sets the ammunition for the weapon in the given weapon slot.
Call this on: The player
Example:
level.player setweaponslotammo("primary", 125);
Required arguments:
- <weapon slot>: Valid weaponslots are "primary" and "primaryb".
- <ammo count>: The amount of ammunition.
Optional arguments:
- none
Notes:
- none