Difference between revisions of "ScriptEvent:getMaxAmmo"

From Mod Wiki
 
(No difference)

Latest revision as of 16:44, 5 November 2007

Parameters

integer index -- Index of the ammoDef.

Result

integer

Supported By

idPlayer

Comments

  • If the index is invalid, the game will likely crash or return garbage data.

Functionality

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