Hi, I intend to have a marine be able to swap a rifle and a flamethrower via an ability. I have used the Raynor swap weapon behaviors and Zerg Hunter RPG's gunslinger as my starting point. So far, the result is:
- Changing to flamethrower mode disables the rifle as expected, but once used I am unable to have the marine switch back to rifle mode.
- Clicking on the rifle mode button (The marine begins in rifle mode by default) disables the flamethrower as expected. But when the flamethrower button is subsequently clicked, the flamethrower is shown as enabled in the UI but the rifle is not disabled. The marine also attacks with his rifle.
Anybody who knows their way around the editor able to give a diagnosis? I was thinking validators, but my reference (ZHRPG) did not seem to mess with them much. I am still trying to figure things out. Thanks in advance! And Happy new year :D
Simply make 2 buffs, 1 for disabling rifle and 1 for flame. Then make 2 abils, 1 for switching to each weapon. The abil for using flame will remove the disable flame buff and applying the disable rifle buff, and vice versa. Then you have your weapon switching system. Of course you want your marine to have the disable flame buff on at start.
Behavior #1 call it Rifle Equip. This behavior will disable Flamer weapon and enable Rifle weapon.
Behavior #2 call it Flamer Equip. This behavior will enable Flamer weapon and disable Rifle weapon.
Flame Thrower Equipping button
Effect type Set Effect, throw in Remove Behavior(Rifle Equip) and Apply Behavior(Flamer Equip).
Rifle Equipping button
Effect type Set Effect, throw in Remove Behavior(Flamer Equip) and Apply Behavior(Rifle Equip).
You want your marine to start out with probably the Rifle Equip behavior on.
I did it as you said, it succeeded in making the ability repeatable, but now clicking the flamethrower doesn't seem to disable the rifle. As in the flamethrower is now enabled but the rifle doesn't disable hence it still attacks with the rifle. I checked through the entire effect - behavior setup and don't see any problems, what could it be? Thanks!
OK I think I got it...basically my problem was that I used Copy From instead of creating new abilities, so somewhere the linking got all messed up. But it's working fine now. Thanks for the help ^^
Hi, I intend to have a marine be able to swap a rifle and a flamethrower via an ability. I have used the Raynor swap weapon behaviors and Zerg Hunter RPG's gunslinger as my starting point. So far, the result is:
- Changing to flamethrower mode disables the rifle as expected, but once used I am unable to have the marine switch back to rifle mode.
- Clicking on the rifle mode button (The marine begins in rifle mode by default) disables the flamethrower as expected. But when the flamethrower button is subsequently clicked, the flamethrower is shown as enabled in the UI but the rifle is not disabled. The marine also attacks with his rifle.
Anybody who knows their way around the editor able to give a diagnosis? I was thinking validators, but my reference (ZHRPG) did not seem to mess with them much. I am still trying to figure things out. Thanks in advance! And Happy new year :D
Are you doing this with a buff that adds the weapon? Ive done this with no problem.
Simply make 2 buffs, 1 for disabling rifle and 1 for flame. Then make 2 abils, 1 for switching to each weapon. The abil for using flame will remove the disable flame buff and applying the disable rifle buff, and vice versa. Then you have your weapon switching system. Of course you want your marine to have the disable flame buff on at start.
@grenegg: Go
Behavior #1 call it Rifle Equip. This behavior will disable Flamer weapon and enable Rifle weapon.
Behavior #2 call it Flamer Equip. This behavior will enable Flamer weapon and disable Rifle weapon.
Flame Thrower Equipping button
Effect type Set Effect, throw in Remove Behavior(Rifle Equip) and Apply Behavior(Flamer Equip).
Rifle Equipping button
Effect type Set Effect, throw in Remove Behavior(Flamer Equip) and Apply Behavior(Rifle Equip).
You want your marine to start out with probably the Rifle Equip behavior on.
EDIT: Bah beaten to it.
@BorgDragon: Go
I did it as you said, it succeeded in making the ability repeatable, but now clicking the flamethrower doesn't seem to disable the rifle. As in the flamethrower is now enabled but the rifle doesn't disable hence it still attacks with the rifle. I checked through the entire effect - behavior setup and don't see any problems, what could it be? Thanks!
OK I think I got it...basically my problem was that I used Copy From instead of creating new abilities, so somewhere the linking got all messed up. But it's working fine now. Thanks for the help ^^
You could use a dummy ability and triggers.