Double Click Macro

Got tired of looking for a simple double click/hold solution for blueprints. So, here’s one I made based on an old post I found somewhere on the internet, I modified it to include “Hold”. Best created in a Blueprint Macro Library so you can call it from most blueprints.

Set the interval on the actual blueprint you have this macro called on. Create a bool variable either as an independent variable or as an input variable on the custom event you want fired to denote when your desired Input Action is pressed or not.

If you are going for the latter, click on the desired custom event, find the “Inputs” tab in the “Details” panel (on the right if using default UE layout), press the little plus button on the right side of the “Inputs” tab, make it a bool, remember to compile before using.

Example:


If there is a better/simpler solution, please post below as I am still learning Unreal Engine.