ScriptEvent:setMaxAmmo

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

Parameters

integer index -- Index of the ammoDef.
integer limit -- Limit to set.

Result

None.

Supported By

idPlayer

Comments

  • If the index is out of range, the game will likely crash.

Functionality

Sets the maximum amount of ammo the player is allowed to carry, of a specified ammoDef.