ScriptEvent:addToClip

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

Parameters

integer index -- Clip index.
integer amount -- Amount of ammo to add.

Result

None.

Supported By

idWeapon

Comments

  • The amount of ammo in the clip will be automatically capped by the maximum size of the clip, and the amount of ammo available.

Functionality

Adds the specified amount of ammo to the clip at the given index.