RefireTo: Difference between revisions
From Eternity Wiki
Jump to navigationJump to search
(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....") |
(No difference)
|
Latest revision as of 15:05, 24 October 2024
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.