WEAPON:Ammo2

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

Contents

Description

Returns how much of secondary ammo the player has.

Returns

number

The amount of secondary ammo player has

Examples

Example

As defined in weapon_base

function SWEP:Ammo2()
	return self.Owner:GetAmmoCount( self.Weapon:GetSecondaryAmmoType() )
end


Personal tools
Navigation