(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Parameters
integer index -- Index of the ammoDef.
integer limit -- Limit to set.
Result
None.
Supported By
idPlayer
- 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.