Call of Duty 4: Scripting Reference - Player::SetWeaponSlotAmmo

From COD Modding & Mapping Wiki
Share/Save/Bookmark
Jump to: navigation, search


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:

  1. <weapon slot>: Valid weaponslots are "primary" and "primaryb".
  2. <ammo count>: The amount of ammunition.


Optional arguments:

none


Notes:

none