Setting the timeline start for different instancces of a blueprint

Hello!

So I have multiple copies of a blueprint in the map that has a timeline.

How do I set it so that some copies of that blueprint’s timeline starts at a certain point, and the others at the beginning?

1 Like

The “New Time” setting on a timeline controls what time the timeline starts at. You would need to create a float variable in your blueprint, set it to 0 for most of the instances, and set it to whatever time you want to start the timeline for your other instances of that blueprint, then feed that variable into the New Time pin of the Timeline node.

You would then need to trigger the Set New Time pin of the timeline to set the timeline to that new time. I would just put a Sequence node in front of the timeline, and trigger Set New Time first, then Play second. Keep in mind I haven’t actually tried this but logically that should make your timeline play from the new time you just set.

Btw if you hold Ctrl+Alt while mouseovering a timeline, it will tell you what each pin does.

1 Like

Thank you! Is there a way to have the set new time variable specific to each copy of the BP in my level? Like maybe make it appear on the details page when selecting it in the scene outliner here?

EDIT: Found it! I just set it to editable and it appeared there :smiley:

You can also set the variable to Expose on Spawn, in case you need to spawn more of those actors later on and need to set the value of that variable as they are spawned (your variable will appear in the SpawnActor node if you select that actor class).