How to keep playing an event while holding touch

My problem is I want to have an event keep playing while I keep touching my screen. OnInputTouchBegin makes it only play once. How can I make it so It will keep firing up the string while I hold down touch?
Thanks

One way to do this is to set a boolean true on press, and to set it false on release.

Then use the event tick to do you action based on that boolean.

Hope this helps.

I have been looking around today how to set up my controller because the input was been automatically released for some reason and I could not understand why.

To answer your question I am sharing with you a blueprint I am using at the moment, which I think is better because you are not calling the function at every tick but on a set time.

Also, I was only able to get rid of the autorelease glitch when I changed the interaction mode of the button to NOT be focused - Click MethodPrecise Click and Touch MethodDown and UP

Hope this works for you.