ItemWeaponSetAmmo( <clip ammo>, <reserve ammo>, <alt weapon>, )


Module: Weapons

Summary:

Sets the ammo ammount for a weapon item entity (lying on the ground)



Call this on:

A weapon item entity



Example:

weapon ItemWeaponSetAmmo( 5, 20 );



Required Args:

  • 1 : <clip ammo> The amount of ammo in the clip.
  • 2 : <reserve ammo> The amount of ammo not in the clip.


Optional Args

  • 1 : <alt weapon> Pass zero to set ammo for the primary weapon. Pass 1 to set ammo for the alt weapon. The default is 0.