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

From COD Modding & Mapping Wiki
Share/Save/Bookmark
Revision as of 01:29, 1 August 2009 by CoDEmanX (talk | contribs) (New page: {{Function |Version=4 |Name=SetWeaponSlotAmmo( <weapon slot>, <ammo count> ) |Module=Player |Available |Summary=Sets the ammunition for the weapon in the given weapon slot. |Ca...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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