Can I Add a Variable For a Vector in a Timeline?

I’m setting up an aiming system and I want to know if I can use a variable to control where my timeline’s ending point was. I also want to know if you can control how long a timeline lasts with a variable.

I don’t know if you can change the end point of a timeline, but a more typical way of doing things is to run the timeline from 0 to 1 and multply the output pin by the amount you need:

Once you have made your timeline, a variable is available on the left hand side:

283919-tl-variable.jpg

You can drag off this and change the speed of the timeline:

283920-set-play-rate.jpg