ConsumeAmmo: Difference between revisions

From Eternity Wiki
Jump to navigationJump to search
(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}}")
 
(No difference)

Latest revision as of 14:58, 24 October 2024

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