ScriptEvent:getAmmo

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

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 amount of ammo the player has of a specified ammoDef.