A_ReFire
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.
A_ReFire [(str "state")]
- 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.
Examples
Fire: 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
This article is issued from Zdoom. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.