# How to randomly start timeline at different time for each instance

**URL:** <https://forums.unrealengine.com/t/how-to-randomly-start-timeline-at-different-time-for-each-instance/298452>\
**Category:** Blueprint\
**Tags:** timeline, toggle, random, light, unreal-engine, question\
**Created:** [November 7, 2014, 10:38pm UTC](https://forums.unrealengine.com/t/how-to-randomly-start-timeline-at-different-time-for-each-instance/298452 "2014-11-07T22:38:22Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aphexx100](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Aphexx100](https://forums.unrealengine.com/u/Aphexx100)\
**Post date:** [November 7, 2014, 10:38pm UTC](https://forums.unrealengine.com/t/how-to-randomly-start-timeline-at-different-time-for-each-instance/298452/1 "2014-11-07T22:38:22Z")

</div>

i have a simple blueprint that toggles visibility of a light to make it flicker.  
now i want to have each instance of this blueprint to start at a different time in the timeline.  
how would i do that?  
this is my blueprint and timeline.

 ![20467-lighttogglerandom.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/9/6/69634ca4b3f48df97284b25e9ad1a46fc3322ed3.jpeg)

---

<div class="post-metadata">

**Author:** ![Aphexx100](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Aphexx100](https://forums.unrealengine.com/u/Aphexx100)\
**Post date:** [December 2, 2014, 11:48am UTC](https://forums.unrealengine.com/t/how-to-randomly-start-timeline-at-different-time-for-each-instance/298452/2 "2014-12-02T11:48:58Z")

</div>

i just wanted to give this a push. can someone help me with this?

---

<div class="post-metadata">

**Author:** ![XxDANitxX](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@XxDANitxX](https://forums.unrealengine.com/u/XxDANitxX)\
**Post date:** [January 18, 2015, 9:17pm UTC](https://forums.unrealengine.com/t/how-to-randomly-start-timeline-at-different-time-for-each-instance/298452/3 "2015-01-18T21:17:03Z")

</div>

Hi there,

```
  I don't know if you figured this out yet, but what I did was create a delay at the end of time line with a get random float from range at the end of the time line to give me variation. On your light you could run off of the event tick and set its brightness or intensity off of a random float this should give you the flickering effect,

```

Let me know if this helped

Cheers my friend  
Dan

---

<div class="post-metadata">

**Author:** ![Aphexx100](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Aphexx100](https://forums.unrealengine.com/u/Aphexx100)\
**Post date:** [January 19, 2015, 11:56am UTC](https://forums.unrealengine.com/t/how-to-randomly-start-timeline-at-different-time-for-each-instance/298452/4 "2015-01-19T11:56:15Z")

</div>

oh cool, thx dan. no i didn’t figure out yet. i’ll try this later.  
cheers  
sascha

---

<div class="post-metadata">

**Author:** ![monodrobe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@monodrobe](https://forums.unrealengine.com/u/monodrobe)\
**Post date:** [June 7, 2016, 10:23pm UTC](https://forums.unrealengine.com/t/how-to-randomly-start-timeline-at-different-time-for-each-instance/298452/5 "2016-06-07T22:23:51Z")

</div>

The delay trick works, but that means your first run is the same, you can put a delay in front, but then you have dead time initially. Just depends on the affect you want.

But if neither of those cut it this is what i did

 ![93776-randomtimes.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/7/9/7795028f5d2997027a0517f1207fd8a0c74cff44.jpeg)

random value (between 0 and 30 in my case cause my time line is 30 seconds) and then using a sequence before it in order to fire the new time value.

I wrestled with this for awhile before i realized you had to fire that Set New Time pin in order to get that random value to do its thing

the do once just stops it from unessarly firing over and over, though in hind sight it should only fire once anyways. But if you were firing this off tick then the do once would be usefull

---

<div class="post-metadata">

**Author:** ![celinedrules](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@celinedrules](https://forums.unrealengine.com/u/celinedrules)\
**Post date:** [November 16, 2017, 12:51am UTC](https://forums.unrealengine.com/t/how-to-randomly-start-timeline-at-different-time-for-each-instance/298452/6 "2017-11-16T00:51:07Z")

</div>

In case anyone is still wondering, this is how I do it.

 ![220303-timeline.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/6/3/d63283dc16a93bc7e4d821710f525b0d9cb0e997.png)

---

<div class="post-metadata">

**Author:** ![llamadoH](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@llamadoH](https://forums.unrealengine.com/u/llamadoH)\
**Post date:** [April 25, 2018, 7:03pm UTC](https://forums.unrealengine.com/t/how-to-randomly-start-timeline-at-different-time-for-each-instance/298452/7 "2018-04-25T19:03:44Z")

</div>

Thank you. This works great.

---

<div class="post-metadata">

**Author:** ![Zenahr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Zenahr](https://forums.unrealengine.com/u/Zenahr)\
**Post date:** [December 1, 2022, 5:55am UTC](https://forums.unrealengine.com/t/how-to-randomly-start-timeline-at-different-time-for-each-instance/298452/8 "2022-12-01T05:55:10Z")

</div>

Great stuff! Works well in my project. This works on BeginPlay. If you’d like to add even more randomness you could also do this on Tick but to save some performance set the actor tick rate to something like 5 seconds which is more than enough for this use case.
