Weapon.GetSecondaryAmmoType
From GMod Wiki
Function | |
Syntax | Weapon:GetSecondaryAmmoType( ) |
Description: | |
Returns the type of ammo that the weapon's secondary fire takes. | |
Returns: | number |
In Object: | Weapon |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Weapon.GetSecondaryAmmoType]Weapon.GetSecondaryAmmoType [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Prints the secondary ammo type. |
---|---|
Used on | |
Code | print( LocalPlayer():GetActiveWeapon():GetSecondaryAmmoType() ) |
Output | Prints the LocalPlayers currently selected weapon, secondary ammo type |