Revision Difference
WEAPON:Ammo2#512103
<function name="Ammo2" parent="WEAPON" type="hook">⤶
<ishook>yes</ishook>⤶
<description>Returns how much of secondary ammo the player has.</description>⤶
<realm>Shared</realm>⤶
<rets>⤶
<ret name="" type="number">The amount of secondary ammo player has</ret>⤶
</rets>⤶
</function>⤶
⤶
<example>⤶
<description>As defined in weapon_base</description>⤶
<code>⤶
function SWEP:Ammo2()⤶
return self.Owner:GetAmmoCount( self.Weapon:GetSecondaryAmmoType() )⤶
end⤶
</code>⤶
⤶
</example>