SWEP.Ammo1
From GMod Wiki
Revision as of 18:26, 7 June 2010 by Crazy Quebecer (Talk | contribs)
Event Hook | |
Hook Name | Ammo1 |
Syntax | SWEP:Ammo1( ) |
Description | Returns the amount of primary ammo in reserve. |
Returns | Integer ammo |
Lua State | |
BBCode | [b][url=wiki.garrysmod.com/?title=SWEP.Ammo1]SWEP.Ammo1 [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:Ammo1() return self.Owner:GetAmmoCount( self:GetPrimaryAmmoType() ) end