# How to run the timeline in a foreachloop？

**URL:** <https://forums.unrealengine.com/t/how-to-run-the-timeline-in-a-foreachloop/451345>\
**Category:** Getting Started & Setup\
**Tags:** timeline, foreachloop, unreal-engine, bug-report, UE4, question\
**Created:** [June 27, 2019, 2:05pm UTC](https://forums.unrealengine.com/t/how-to-run-the-timeline-in-a-foreachloop/451345 "2019-06-27T14:05:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anonymous\_431c8b5f6f6bec8fc955cb9610102647](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anonymous\_431c8b5f6f6bec8fc955cb9610102647](https://forums.unrealengine.com/u/Anonymous_431c8b5f6f6bec8fc955cb9610102647)\
**Post date:** [June 27, 2019, 2:05pm UTC](https://forums.unrealengine.com/t/how-to-run-the-timeline-in-a-foreachloop/451345/1 "2019-06-27T14:05:49Z")

</div>

I tried to moving location of actors by using timeline. When I was running the foreachloop before my timeline, the foreachloop ran for current times,but my timeline only finished once.

---

<div class="post-metadata">

**Author:** ![KristofMorva](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kristofmorva/32/1194508_2.png) [@KristofMorva](https://forums.unrealengine.com/u/KristofMorva)\
**Post date:** [June 27, 2019, 4:26pm UTC](https://forums.unrealengine.com/t/how-to-run-the-timeline-in-a-foreachloop/451345/2 "2019-06-27T16:26:09Z")

</div>

You can’t run a Timeline more times. In the background it’s only one instance that can be started and stopped.

---

<div class="post-metadata">

**Author:** ![CosmicLobster](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/cosmiclobster/32/1211357_2.png) [@CosmicLobster](https://forums.unrealengine.com/u/CosmicLobster)\
**Post date:** [June 27, 2019, 6:32pm UTC](https://forums.unrealengine.com/t/how-to-run-the-timeline-in-a-foreachloop/451345/3 "2019-06-27T18:32:25Z")

</div>

Use the for each loop to move all actors after timeline updates. (foreach loop connected to Update-execution of the timeline)  
In other words, every time this one timeline updates, it’s new value can be used on all actors.
