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

From COD Modding & Mapping Wiki
Share/Save/Bookmark
Revision as of 01:53, 1 August 2009 by CoDEmanX (talk | contribs) (New page: {{Function |Version=4 |Name=AnyAmmoForWeaponModes( <weapon name> ) |Module=Player |Available |Summary=Returns true if the player has any ammo available for the weapon or any of it's ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


AnyAmmoForWeaponModes( <weapon name> )

Module: Player

Summary:

Returns true if the player has any ammo available for the weapon or any of it's alt-modes (grenade launcher, etc).


Call this on: The player

Example:

if ( level.player AnyAmmoForWeaponModes( "m4_grenadier" ) ) [...]

Required arguments:

  1. <weapon name>: (string) The weapon name for this weapon.


Optional arguments:

none


Notes:

none