Garry's Mod Wiki

Revision Difference

Weapon:Clip2#512128

<function name="Clip2" parent="Weapon" type="classfunc">⤶ <description>Returns how much secondary ammo is in magazine.</description>⤶ <realm>Shared</realm>⤶ <rets>⤶ <ret name="" type="number">The amount of secondary ammo in the magazine.</ret>⤶ </rets>⤶ </function>⤶ ⤶ <example>⤶ <description>Prints the amount of secondary ammo in the magazine of the weapon the 1st player has equipped.</description>⤶ <code>print( player.GetByID( 1 ):GetActiveWeapon():Clip2() )</code>⤶ <output>Will print -1 for all HL2 weapons.</output>⤶ ⤶ </example>