Lyra Adding a delay between weapon switches for the quickbar

Is there an easy way to add a delay between weapon switches in Lyra? For example so someone can’t swing a sword and then switch and fire an axe immediately after for a double whammy (or fire a weapon while another is reloading–right now you can switch weapons during a reload and fire immediately).

I took a look at the LyraQuickBarComponent code but didn’t see anything obvious, and also tried adding ability blocking to other input tags when a switch weapons ability is activated, but no such luck.

1 Like

So I was able to add a delay when using abilities, to prevent swapping mid abilities. I have not been able to successfully block swapping after swapping without issues.

To block swapping during abilities in the QuickbarSlots Ability, add a check after the Wait Gameplay Events. You just need to get the ASC of the owner, check if it has a Tag that is added during ability activations. To do this you Make Gameplay Tag Container using your Block Tag. Then use Has Any Matching Gameplay Tags with a Branch node. Then in every ability you want to block weapon swapping you just add this Tag in the Ability Activation Tags.

I tried creating a GE for a cooldown using this Tag and adding it after the Swaps and Index selection, but I had a weird delay that kept incrementing. If you figure out how to do the latter part I’d love to know. Good luck!

Awesome, thanks for the idea!

I tried a bunch of different things but wasn’t able to get it to work (still lets me switch weapons immediately after attacking before the animation completes). Am I adding the Tag to the right Ability Activation Tag you mentioned?




1 Like

Try adding Ability.InProgress to “Activation Owned Tags” instead.

Awesome that was it, thanks for catching that!

I’ll take a look at adding a GE for a cooldown… I’ll be using this video for guidance