Hold to stop timeline while it playing

Hello I’m having problem with timeline in player character

What I wan to do:

  1. Hold to Dash for 3 seconds (maximum in timeline) — This work
  2. When I release button character stop dash — This work
  3. When hold Dash button for a time (default is 0.5 s , I made it that i can modify it later) character stop dash — This is not work

Problems:

  • How to stop timeline while it playing
  • I have check that Boolean change from True to False at 0.5 s after hold button, but timeline not stop after False
  • If I continuous hold Dash button it will Dash forever
  • I have to use Add Movement Input node because Character route is tie in spline

1 Like

You can stop the timeline playback by using its reference like so:

291449-capture.png

Or hooking up a Custom Event to the timeline’s stop pin directly. Also, the timeline can have an Event Track that will add an execution pin and fire only once at a specific time.

2 Likes

Thank you for answer me

This took 2 day trial and error and google.
I have try to find solution while waiting for answer and finally find the wrong point.

It is the Branch node is in wrong place. Anyway I never know about Event Track in timeline. I have tried to use it and found that it is great thing to know. It definitely must use for me in nearly future.

I uploaded image of solved version below. (It is noting to do with middle Branch)

1 Like

Thank you, that worked for me.