Difference between revisions of "ScriptEvent:setMaxAmmo"

From Mod Wiki
 
(No difference)

Latest revision as of 18:00, 5 November 2007

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.