ScriptEvent:useAmmo

From Mod Wiki
Revision as of 11:14, 5 November 2007 by Wizz (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.