Weapon/Clip2

From Garry's Mod
Jump to: navigation, search
 Weapon:Clip2( )

Contents

Description

Returns how much secondary ammo is in magazine.

Returns

number

The amount of secondary ammo in the magazine.

Examples

Example

Prints the amount of seconday ammo in the magazine of the weapon the 1st player has equipped.

print( player.GetByID( 1 ):GetActiveWeapon():Clip2() )

Output:

Will print -1 for all HL2 weapons.
Personal tools
Navigation