How to randomly start timeline at different time for each instance

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.

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

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

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

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

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

3 Likes

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

1 Like

Thank you. This works great.

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.