# What's the best way to set the player's location?

**URL:** <https://forums.unrealengine.com/t/whats-the-best-way-to-set-the-players-location/1973365>\
**Category:** Blueprint\
**Tags:** unreal-engine, question\
**Created:** [August 12, 2024, 10:46pm UTC](https://forums.unrealengine.com/t/whats-the-best-way-to-set-the-players-location/1973365 "2024-08-12T22:46:44Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![sweeetjd](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sweeetjd/32/782492_2.png) [@sweeetjd](https://forums.unrealengine.com/u/sweeetjd)\
**Post date:** [August 12, 2024, 10:46pm UTC](https://forums.unrealengine.com/t/whats-the-best-way-to-set-the-players-location/1973365/1 "2024-08-12T22:46:44Z")

</div>

I’m making some blueprints that move the character along a spline in 3D, and don’t allow any input until the player exits the spline. Right now I’m using add movement input while having the character set to flying, since it seems the most reliable, but it tends to slow down at curves. What’s the best way to make a player move along a spline at a constant rate?

 ![Screenshot 2024-08-12 154622](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28537047423a6219697b4af095047ee760b027f5.jpeg)

---

<div class="post-metadata">

**Author:** ![Rev0verDrive](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rev0verdrive/32/907214_2.png) [@Rev0verDrive](https://forums.unrealengine.com/u/Rev0verDrive)\
**Post date:** [August 13, 2024, 1:53am UTC](https://forums.unrealengine.com/t/whats-the-best-way-to-set-the-players-location/1973365/2 "2024-08-13T01:53:49Z")

</div>

You can attach it to an actor on the spline that will move. Disable CMC (movement mode : None).  
Additionally you can tick the two CMC conditions to have the server stop correcting movement.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/8/a/18a94ec2c4bf53e7b766f8ef45d2cc1a20e06be5.png)

---

<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:** [August 13, 2024, 7:39am UTC](https://forums.unrealengine.com/t/whats-the-best-way-to-set-the-players-location/1973365/3 "2024-08-13T07:39:19Z")

</div>

> [@sweeetjd](#):
>
> it tends to slow down at curves. What’s the best way to make a player move along a spline at a constant rate

Have a look here:

> [@Actors on spline with irregular spacing](https://forums.unrealengine.com/t/actors-on-spline-with-irregular-spacing/677071/4):
>
> Play with distribution using spline duration instead: [image] The results without: And with Constant Velocity: Perhaps that’s enough.

---

<div class="post-metadata">

**Author:** ![sweeetjd](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sweeetjd/32/782492_2.png) [@sweeetjd](https://forums.unrealengine.com/u/sweeetjd)\
**Post date:** [August 13, 2024, 9:31pm UTC](https://forums.unrealengine.com/t/whats-the-best-way-to-set-the-players-location/1973365/4 "2024-08-13T21:31:54Z")

</div>

I’ll check it out, thanks!

---

<div class="post-metadata">

**Author:** ![sweeetjd](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sweeetjd/32/782492_2.png) [@sweeetjd](https://forums.unrealengine.com/u/sweeetjd)\
**Post date:** [August 13, 2024, 9:33pm UTC](https://forums.unrealengine.com/t/whats-the-best-way-to-set-the-players-location/1973365/5 "2024-08-13T21:33:03Z")

</div>

I’m not too familiar with this. It sounds like this is more related to multiplayer games or online games. Is that true? Would it work in a single player game?

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [September 12, 2024, 9:33pm UTC](https://forums.unrealengine.com/t/whats-the-best-way-to-set-the-players-location/1973365/6 "2024-09-12T21:33:09Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
