Download

Input issues

Guys, i want to fire the projectile in certain rate without releasing a button. In InputAction we have Pressed and Released only. Is it possible to get access to the “Hold” in the InputAction via Blueprints?

There is no automatic way of doing this.

You can create a “Hold” boolean variable then when the button is pressed you set it to true and when it’s released you set it to false.
Then you can add a branch on the Tick event to check if that boolean is true and perform the actions you need.

But for firing a projectile at a certain rate there are many other (and probably better/cleaner) methods :stuck_out_tongue:

For example:
933d60a323bc59ffed4319841e7ec01e9809bf20.jpeg

Thank you for your nice ideas, i’ll dig in. :slight_smile:
In any case it would be nice to have more flexibility in such a casual Events.