e2 docs weapon - wiremod/wire GitHub Wiki
Weapon
=
:weapon()
Returns the weapon that player E is currently holding (2 ops)
=
:weapon(
Weaponclassname)
Returns the weapon with specified class of player E (2 ops)
=
:weapons()
Returns the weapons that player E has (2 ops)
=
:primaryAmmoType()
Returns the name of the primary weapon's ammo (2 ops)
=
:secondaryAmmoType()
Returns the name of the secondary weapon's ammo (2 ops)
=
:ammoCount(
Ammo_type)
Returns the amount of stored ammo of type S on player E, excluding current clip (2 ops)
=
:clip1()
Returns the amount of ammo in the primary clip of weapon E, -1 if there is no primary clip (2 ops)
=
:clip2()
Returns the amount of ammo in the secondary clip of weapon E, -1 if there is no secondary clip 1) (2 ops)
=
:tool()
returns the name of the tool the player E is currently holding (2 ops)