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

**URL:** <https://forums.unrealengine.com/t/can-i-add-a-variable-for-a-vector-in-a-timeline/453180>\
**Category:** Blueprint\
**Tags:** timeline, add-variable, unreal-engine, vector, UE4, question, Blueprint\
**Created:** [August 1, 2019, 1:06pm UTC](https://forums.unrealengine.com/t/can-i-add-a-variable-for-a-vector-in-a-timeline/453180 "2019-08-01T13:06:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RunklTookl](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RunklTookl](https://forums.unrealengine.com/u/RunklTookl)\
**Post date:** [August 1, 2019, 1:06pm UTC](https://forums.unrealengine.com/t/can-i-add-a-variable-for-a-vector-in-a-timeline/453180/1 "2019-08-01T13:06:06Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [August 2, 2019, 12:02pm UTC](https://forums.unrealengine.com/t/can-i-add-a-variable-for-a-vector-in-a-timeline/453180/2 "2019-08-02T12:02:58Z")

</div>

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:

 ![283918-timeline.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/3/5/f35cd1226a099667231ea003ad6ed7690c07e22e.jpeg)

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

![283919-tl-variable.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/5/5/f559237a5cf5a1bb2e465f9720df965922f89ada.jpeg)

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

![283920-set-play-rate.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/b/3/9b3c6514c4694b0bc6a72915a553cd1b7a5dd567.jpeg)
