RefireTo

From Eternity Wiki
Revision as of 14:05, 24 October 2024 by Printz (talk | contribs) (Created page with "{{codepointer|description=Changes weapon frame to a given state if the fire button is currently being pressed and the weapon has enough ammo to fire. |usage='''A_RefireTo'''(''frame'', ''skip_ammo_check'') |parameters= *''frame'': state to jump to if check passes *''skip_ammo_check'': if nonzero, skip the ammo check and change state |notes=Like ReFire, this will change state if player is holding fire, but lets you change to another frame instead of the attack frame....")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Description

Changes weapon frame to a given state if the fire button is currently being pressed and the weapon has enough ammo to fire.

Usage

A_RefireTo(frame, skip_ammo_check)

Parameters

  • frame: state to jump to if check passes
  • skip_ammo_check: if nonzero, skip the ammo check and change state

Examples

No examples given.

Notes

Like ReFire, this will change state if player is holding fire, but lets you change to another frame instead of the attack frame.

See also