# How to set a starting position for an Actor on a spline

**URL:** <https://forums.unrealengine.com/t/how-to-set-a-starting-position-for-an-actor-on-a-spline/2382656>\
**Category:** Blueprint\
**Tags:** unreal-engine, question\
**Created:** [March 10, 2025, 1:13am UTC](https://forums.unrealengine.com/t/how-to-set-a-starting-position-for-an-actor-on-a-spline/2382656 "2025-03-10T01:13:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![SkayKosh](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SkayKosh](https://forums.unrealengine.com/u/SkayKosh)\
**Post date:** [March 10, 2025, 1:13am UTC](https://forums.unrealengine.com/t/how-to-set-a-starting-position-for-an-actor-on-a-spline/2382656/1 "2025-03-10T01:13:02Z")

</div>

Hello! this is a two part question

Wondering how to set a starting position of an actor on a spline  
right now all the actors begin their movement on a spline from the bigging of the spline itself.  
and if I “push” the actor it will also jus jump to the beginning of the spline

and a second question  
How to make sure the actor “loops” on the spline at this moment the movement ends as soon as actor reaches the end of the spline

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/e/c/3ec1e1e99e5d01c1e1ae896f49ac26205b1ccb64.jpeg)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/2/7/227376ba3a5f1e6bd8ae79c1382bfd5d21859a1c.png)

Thank you!

---

<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:** [March 10, 2025, 9:39am UTC](https://forums.unrealengine.com/t/how-to-set-a-starting-position-for-an-actor-on-a-spline/2382656/2 "2025-03-10T09:39:49Z")

</div>

> [@SkayKosh](#):
>
> Wondering how to set a starting position of an actor on a spline

- get location at distance
- get location at time
- get location at point
- get location at input key

Those will produce a relative / world space location on the spline you’re getting. We can also `Find Location Closest to World Location` with a node - can be convenient at times.

> [@SkayKosh](#):
>
> How to make sure the actor “loops” on the spline at this moment the movement ends as soon as actor reaches the end of the spline

Usually with [modulo](https://www.youtube.com/watch?v=HXCkOzkgamU), have a look:

> [@Move multiple actors along spline](https://forums.unrealengine.com/t/move-multiple-actors-along-spline/437200/7):
>
> Here’s a simplified (compared to yours) script I’d use were I to push numerous actors along a spline: [[Image from Gyazo]](https://gyazo.com/cc07a1a805a8c28391c561dbac6e5380) Essentially, each car stores an offset. We animate another spline offset using a timeline, add both, and reposition the car. An optional Modulo wraps the value so we get perpetual motion.

But you can also use a `Looping` Timeline’s float track to progress through a spline’s time directly.

---

<div class="post-metadata">

**Author:** ![SkayKosh](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SkayKosh](https://forums.unrealengine.com/u/SkayKosh)\
**Post date:** [March 12, 2025, 8:11pm UTC](https://forums.unrealengine.com/t/how-to-set-a-starting-position-for-an-actor-on-a-spline/2382656/4 "2025-03-12T20:11:01Z")

</div>

hi! thank you for the suggestions  
here is what i have tried

I have added find location closes to world location for the actor and used that at the beginning of my “Push” blueprint

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/d/1/5d11e9d636c915dc79641e71dddc8114df3676f3.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/a/e/8aeedda202d3d3b9ea378ffbf396e797fd29cb9d.png)

I tried this before and it didn’t work, the cart actor is still starting its movement from the beginning of the spline  
Overwise I don’t quite understand where else in the blueprint I need to set the starting actor position (the start vector variable is the start of the push)

as far as timeline goes, currently my only timeline is for pushing movement

I did attempt what i saw in the example you provided

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/0/0/6002cc7aca619db02a49cfccedf9c2379a27cb71.png)

but this only works as movement for the entire spline, and not incremental pushing like what I had set up

thank you again!  
[/quote]

---

<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:** [March 12, 2025, 9:18pm UTC](https://forums.unrealengine.com/t/how-to-set-a-starting-position-for-an-actor-on-a-spline/2382656/5 "2025-03-12T21:18:07Z")

</div>

> [@SkayKosh](#):
>
> and if I “push” the actor it will also jus jump to the beginning of the spline

Could you give us a super brief rundown of how it’s supposed to work? Are we pushing a mining cart along a spline? If so, what’s the timeline for? Do we touch it and it goes from point A → B? Or it only moves while we prod it?

---

<div class="post-metadata">

**Author:** ![SkayKosh](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SkayKosh](https://forums.unrealengine.com/u/SkayKosh)\
**Post date:** [March 13, 2025, 12:56am UTC](https://forums.unrealengine.com/t/how-to-set-a-starting-position-for-an-actor-on-a-spline/2382656/6 "2025-03-13T00:56:48Z")

</div>

![pushbehavior2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/f/3/2f3872e7e59defe08688c0d78c07615c1838341b.gif)  
Here is a quick example  
A rail is looping, a world position of the cart is changing to the beginning of the loop and I would prefer if i could either set or keep the starting position as I placed it, whatever is easier tbh

and so if the cart is at the end of the circle it can just loop on a spline

---

<div class="post-metadata">

**Author:** ![SkayKosh](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SkayKosh](https://forums.unrealengine.com/u/SkayKosh)\
**Post date:** [March 13, 2025, 1:00am UTC](https://forums.unrealengine.com/t/how-to-set-a-starting-position-for-an-actor-on-a-spline/2382656/7 "2025-03-13T01:00:46Z")

</div>

Timeline is for the carts movement itself  
here is how timeline looks

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/b/5/cb5319263a021856d80611a4286cafe62e1cc5d1.png)

and yes the cart only moves when interacted with

and currently spline is its own actor  
and both carts are actors as well
