GetAmmoOfMyWeapon: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{Welcome| desc=Returns the ammo of the weapon specified| params=<source lang="lua">(weaponid)</source> ::weaponid : The ID of the weapon possessed by npc whose ammo is to be determined.| retvals=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.| relfuncs= *SelectWeapon *GetAvailableWeapons| }}") |
(No difference)
|
Revision as of 18:35, 8 May 2023
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.