Revision Difference
WEAPON:Ammo2#565029
<function name="Ammo2" parent="WEAPON" type="hook">
<description>Returns how much of secondary ammo the player has.</description>
<realm>Shared</realm>
<file line="262-L267">gamemodes/base/entities/weapons/weapon_base/shared.lua</file>⤶
<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:GetOwner():GetAmmoCount( self.Weapon:GetSecondaryAmmoType() )⤶
end⤶
</code>⤶
⤶
</example></function>