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

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


GetFractionStartAmmo( <weapon name> )

Module: Player

Summary:

Return the player's current ammunition amount as a fraction of the weapon's starting ammunition


Call this on: The player

Example:

 self GetFractionStartAmmo( "mosin_nagant" );

Required arguments:

  1. <weapon name> The weapon name (a string)


Optional arguments:

none


Notes:

none