ScriptEvent:useAmmo

From Mod Wiki

Parameters

integer type -- Index of the ammoDef.
integer amount -- Amount of ammo to use.

Result

None.

Supported By

idWeapon

Comments

  • If the player does not have enough ammo to cover the reduction, the amount to remove will be reduced to the ammo that they have.

Functionality

Removes ammo from the player's inventory, of the specified amount and type.