Garry's Mod Wiki

Weapon:Clip2

Weapon:Clip2

  number Weapon:Clip2()

Description

Returns how much secondary ammo is in the magazine.

This is not shared between clients and will instead return the maximum secondary clip size.

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( Entity( 1 ):GetActiveWeapon():Clip2() )
Output: Will print -1 for all HL2 weapons.

Special Pages


Wikis

?

Render Time: 54ms

DB GetPage 37
Generate Html 2
SaveChanges (1) 7
Render Body 0
Render Sidebar 7