Weapon.GetSecondaryAmmoType

From GMod Wiki

Jump to: navigation, search


Function
Syntax Weapon:GetSecondaryAmmoType( )
Description:
Returns the type of ammo that the weapon's secondary fire takes.
Returns: number
In Object: Weapon
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Weapon.GetSecondaryAmmoType]Weapon.GetSecondaryAmmoType [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionPrints the secondary ammo type.
Used onNewerClient.png
Code
print( LocalPlayer():GetActiveWeapon():GetSecondaryAmmoType() )
OutputPrints the LocalPlayers currently selected weapon, secondary ammo type
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox