ConsumeAmmo

From Eternity Wiki
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