ScriptEvent:setMaxAmmo

From Mod Wiki

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.