Action on Button Held Down?
Hi, I'm looking for a way to have a player action continuing active while a button is held down in blueprint. Specifically, I'm using the Launch Character node. So I want Launch Character to be firing and increasing the character velocity as long as the assigned button is held down, and then stop as soon at it is let go. Any advice on how to do this?
asked Sep 09 '14 at 08:43 PM in Blueprint Scripting
Remember to use Delta Seconds to compensate for CPU speeds
answered Sep 09 '14 at 08:54 PM
As an alternative if you don't want a bunch of things tied to Event Tick:
I've got a five second long timeline that will perform the held action only on the execution of Finished, which only executes if the button stays pressed.
answered Nov 09 '17 at 01:48 AM
I would suggest using Physics Forces Instead of Launch in your case (Launch is usually a thing you fire once and not consistently) that you solve with a bool and Branch and hook it into Tick. Alternativly you can Change your Movement Component to Flying Mode and use the Add Movement Input to Controll the Direction.
You can hook it up to a Input Axis Event thats Bound to the same Key as your Action Event. Thats more or less it =)
But just in case you really want to use Launch in Intervalls use Timers (the above example with the Timeline is a missuse of a Timeline, sorry Dieinthedark93, no offense) Example: https://i.imgur.com/PvvIiCi.png
Good Luck and have Fun
answered Nov 10 '17 at 08:46 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here