# How to move an object to multiple locations with a single timeline

**URL:** <https://forums.unrealengine.com/t/how-to-move-an-object-to-multiple-locations-with-a-single-timeline/436696>\
**Category:** Blueprint\
**Tags:** timelines, lerp, unreal-engine, UE4, question, Blueprint\
**Created:** [October 30, 2018, 11:43am UTC](https://forums.unrealengine.com/t/how-to-move-an-object-to-multiple-locations-with-a-single-timeline/436696 "2018-10-30T11:43:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_9f9ada60](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_9f9ada60](https://forums.unrealengine.com/u/anonymous_user_9f9ada60)\
**Post date:** [October 30, 2018, 11:43am UTC](https://forums.unrealengine.com/t/how-to-move-an-object-to-multiple-locations-with-a-single-timeline/436696/1 "2018-10-30T11:43:18Z")

</div>

I am trying to create an object that moves from a starting location to two other locations with a pause between each movement Using a timeline. I have a timeline with an Alpha(Float track from 0 to 1) that lerps between two vectors to move the object. Do I need a timeline for each individual location or can you move the object to three locations using the same timeline and if so how would you set this up? I tried setting up a float track for each move with no success, I tried adding a longer track with multiple relative location changes, no success. There has to be some detail I am missing. Thank you for the help in advance.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [October 30, 2018, 1:58pm UTC](https://forums.unrealengine.com/t/how-to-move-an-object-to-multiple-locations-with-a-single-timeline/436696/2 "2018-10-30T13:58:42Z")

</div>

A single Timeline track should be enough here. As you said, you move from A to B and the TL’s track serves just as alpha.

- keep the locations in an array, locations A, B and C at indexes 0, 1 & 2
- when the timeline plays for the 1st time, use the locations in the array 0 & 1 as start / end points (move from A to B)
- when the TL plays the second time, use the locations in the array 1 & 2 as start / end points (move from B to C)

* * *

Here’s are some more ways you can recycle a Timeline:

> **[How to loop through different parts of a door blueprint smoothly?](https://forums.unrealengine.com/questions/815602/how-to-loop-through-different-parts-of-a-door-blue.html)**
>
> So I have this door/wall of sorts that is currently made up of 2 pieces like so: Currently the wall works with the following blueprint: Each timeline is set up to run in 4 seconds with a 1 second delay between the first and second timeline. My...

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_9f9ada60](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_9f9ada60](https://forums.unrealengine.com/u/anonymous_user_9f9ada60)\
**Post date:** [November 1, 2018, 1:09pm UTC](https://forums.unrealengine.com/t/how-to-move-an-object-to-multiple-locations-with-a-single-timeline/436696/3 "2018-11-01T13:09:05Z")

</div>

thanks for the advice, I did mess around with this a bit but in the end went with a spline system so I could dynamically alter the path and locations.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [November 1, 2018, 1:09pm UTC](https://forums.unrealengine.com/t/how-to-move-an-object-to-multiple-locations-with-a-single-timeline/436696/4 "2018-11-01T13:09:56Z")

</div>

Makes sense. You can still use a timeline to dynamically move spline points. 🙂 Just sayin’

---

<div class="post-metadata">

**Author:** ![4ngus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@4ngus](https://forums.unrealengine.com/u/4ngus)\
**Post date:** [November 29, 2022, 3:19am UTC](https://forums.unrealengine.com/t/how-to-move-an-object-to-multiple-locations-with-a-single-timeline/436696/5 "2022-11-29T03:19:49Z")

</div>

I’m struggling to make this. Could you make an example?

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [November 29, 2022, 8:48am UTC](https://forums.unrealengine.com/t/how-to-move-an-object-to-multiple-locations-with-a-single-timeline/436696/6 "2022-11-29T08:48:10Z")

</div>

Not sure what you’re after _precisely_, but if the generic:

> - keep the locations in an array, locations A, B and C at indexes 0, 1 & 2
> - when the timeline plays for the 1st time, use the locations in the array 0 & 1 as start / end points (move from A to B)
> - when the TL plays the second time, use the locations in the array 1 & 2 as start / end points (move from B to C)

Suggested above is _it_, then:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/d/c/ddcaae95ec4075813e6c97c3b2577916c686256e.jpeg)

It will cycle through the locations in the array and `Lerp` between the vectors; and wait for 1s before carrying on.

* * *

There’s probably half a dozen ways to achieve that. And this method may not be suitable in certain scenarios. You generally choose the right tool for the job. You can also follow the link in the post above to see more examples.
