Garry's Mod Wiki

Weapon:Clip2

number Weapon:Clip2()

Description

Returns how much secondary ammo is in magazine.

Returns

1 number
The amount of secondary ammo in the magazine.

Example

Prints the amount of secondary 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.

Page Links


Special Pages


Wikis

?

Render Time: 35ms

DB GetPage 5
Generate Html 6
SaveChanges 10
Render Body 0
Render Sidebar 12