From ZDoom Wiki
(Redirected from A Refire)
Jump to navigation Jump to search

A_ReFire [(str "state")]

For more information on this article, visit the A_ReFire page on the Doom Wiki.

  • state: The state to go to. By default, it is the Hold state, or the Fire state if Hold is not defined, or the AltHold or AltFire state if the function is called from the AltFire sequence.

This function is normally called by weapons after the attack. It checks whether the fire key is still held and if so enters the relevant state.


  WEAP A 3 A_FireBullets(3, 3, 1, 6)
  WEAP B 3 
  WEAP C 3 A_ReFire //If fire button is held, then it goes back to the beginning of the sequence, Otherwise it would continue
  WEAP D 3
  Goto Ready