Results 1 to 4 of 4

Thread: Get grenade ammo

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Brigadier General
    Join Date
    Oct 2012
    Posts
    994
    Thanks
    20
    Thanked 588 Times in 388 Posts
    You can't use the getWeaponSlotClipAmmo() function to find grenade ammo. It only works on the "primary" and "primaryb" weapon slots. Hence why you are getting the error that it must be one of those slots to check. The only way to check ammo for grenades in COD2 is via the getAmmoCount() function.

    However, the setWeaponClipAmmo() function DOES work with grenades, and so you set your grenade items using this function.

    It's a bit confusing, but once you know what function works with which weapon, it's relatively easy to set all types of ammo for any weapon.

  2. The Following User Says Thank You to Tally For This Useful Post:

    kung foo man (8th February 2013)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •