Prevent mouse clickspam / rapidfire

Hey guys,

At the moment i have a more or less “huge” problem. I want to develop weapons which are firing fully automatically with customized firerates. The Problem: When i repeat “spamclicking” on my left mouse button the cooldown will be ignored.

So far no problem had fixes for that…
What the Problem is:

I want a fix firerate for the weapon, but i also want that the weapons can swapped fast around without having a programmed delay stealing time.

My Question:
How would you fix, that if you spamclick the mousebutton it wont be faster as the firerate from the Weapon

So this is the normal Blueprint, The “Cooldown by Weapon” is more likely “Firerate by Weapon” ^^

http://www.indemand.rocks/images/cooldown.PNG

Hello!

I use a macro i created fro this exact purpose. I called it a “timed gate”. and use it for weapon firing.
it does just what you want. you click 1 time, it goes through, the gate closes. and won’t open again until “open delay”, any input in that window will be dropped. Once the gate re-opens player can click again once.
The time could be anything you want.