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.
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!
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?