GetAmmoOfMyWeapon

From NPC for VCMP 0.4 Servers
Revision as of 18:37, 8 May 2023 by Habi (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.