Page 1 of 1

Rapid fire question

Posted: Thu May 29, 2014 5:29 pm
by YukiHerz
I have a gun in DECORATE, it normally fires one bullet each click (kinda shitty gun), and then i have an item, as long as the player is holding that item, this gun can use autofire.

My question is, how would i do something like that? a weapon that can Autofire when a certain item is held, if anyone can point me in the right direction.

Re: Rapid fire question

Posted: Thu May 29, 2014 6:05 pm
by XutaWoo
[wiki]A_ReFire[/wiki] works regardless of NOAUTOFIRE being set, so you can simply use [wiki]A_JumpIfInventory[/wiki] to jump to an alternate firing state where auto fire is allowed.

Keep in mind, A_JumpIfInventory checks if you have at least a certain amount of an item, so you'll want it to jump to the state where the player has the item, not the other way around.