Difference between revisions of "ScriptEvent:addToClip"

From Mod Wiki
 
(No difference)

Latest revision as of 10:54, 5 November 2007

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.