GetAmmoOfMyWeapon

From NPC for VCMP 0.4 Servers
Jump to navigation Jump to search

This function is to be added in v1.6 beta 4 patch 2 and will not work on previous versions.


Description:
Returns the ammo of the weapon specified


Parameters:

(weaponid)
weaponid : The ID of the weapon possessed by npc whose ammo is to be determined.


Return Values:
If the weapon is possessed by npc, then this returns the available ammo of the weapon provided. Otherwise returns 0. Also returns 0 for fists/brass knuckles.



Related Functions

The following functions may be helpful as they relate to this function in one way or another.