SWEP.Ammo2
From GMod Wiki
Event Hook | |
Hook Name | Ammo2 |
Syntax | SWEP:Ammo2( ) |
Description | Returns the amount of secondary ammo in reserve. |
Returns | Integer |
Lua State | |
BBCode | [b][url=wiki.garrysmod.com/?title=SWEP.Ammo2]SWEP.Ammo2 [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Definition of the function
Because it is a convenience function, it is defined by Lua.
function SWEP:Ammo2() return self.Owner:GetAmmoCount( self:GetSecondaryAmmoType() ) end