ConsumeAmmo

From Eternity Wiki
Revision as of 13:58, 24 October 2024 by Printz (talk | contribs) (Created page with "{{codepointer|description=Subtract ammo from the currently selected weapon's ammo pool. |usage='''A_ConsumeAmmo'''(''amount'') |parameters= *''amount'': amount of ammo to subtract. If zero, it will default to current weapon's '''ammopershot''' value. |notes=''Amount'' can be negative, in which case it will actually ''add'' ammo. MBF21 introduced this codepointer, and unlike SubtractAmmo, this one lets you specify amount. |seealso= *SubtractAmmo}}")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Description

Subtract ammo from the currently selected weapon's ammo pool.

Usage

A_ConsumeAmmo(amount)

Parameters

  • amount: amount of ammo to subtract. If zero, it will default to current weapon's ammopershot value.

Examples

No examples given.

Notes

Amount can be negative, in which case it will actually add ammo. MBF21 introduced this codepointer, and unlike SubtractAmmo, this one lets you specify amount.

See also