Difference between revisions of "ScriptEvent:setAmmo"

From Mod Wiki
 
(No difference)

Latest revision as of 17:40, 5 November 2007

Parameters

integer index -- Index of the ammoDef.
integer count -- Amount of ammo to set.

Result

None.

Supported By

idPlayer

Comments

  • If the index is invalid, the game will likely crash.

Functionality

Sets the amount of ammo the player has of a specified ammoDef.