Garry's Mod Wiki

WEAPON:Ammo1

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

Special Pages


Wikis

?

Render Time: 19ms

DB GetPage 3
Generate Html 1
SaveChanges (1) 5
Render Body 0
Render Sidebar 7