WEAPON:Ammo1

From Garry's Mod
Jump to: navigation, search
 WEAPON:Ammo1( )

Contents

Description

Returns how much of primary ammo the player has.

Returns

number

The amount of primary ammo player has

Examples

Example

As defined in weapon_base

function SWEP:Ammo1()
	return self.Owner:GetAmmoCount( self.Weapon:GetPrimaryAmmoType() )
end


Personal tools
Navigation