Garry's Mod Wiki

Revision Difference

WEAPON:Ammo2#553185

<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:GetOwner():GetAmmoCount( self.Weapon:GetSecondaryAmmoType() ) end </code> </example>