Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

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" ^^ alt text

Product Version: UE 4.20
more ▼

asked Dec 15 '18 at 04:21 AM in Blueprint Scripting

avatar image

利虎 RiKO

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first


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.

alt text

captura.png (57.9 kB)
more ▼

answered Dec 15 '18 at 03:30 PM

avatar image

1.7k 8 3 8

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question