Garry's Mod Wiki

WEAPON:Ammo1

number WEAPON:Ammo1()

Description

Returns how much of primary ammo the player has.

Returns

1 number
The amount of primary ammo player has

Example

As defined in weapon_base

function SWEP:Ammo1() return self.Owner:GetAmmoCount( self.Weapon:GetPrimaryAmmoType() ) end

Page Links


Special Pages


Wikis

?

Render Time: 69ms

DB GetPage 48
Generate Html 2
SaveChanges (1) 10
Render Body 0
Render Sidebar 6