# "Simple move to Location" - issue

**URL:** <https://forums.unrealengine.com/t/simple-move-to-location-issue/143241>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [May 10, 2020, 3:54pm UTC](https://forums.unrealengine.com/t/simple-move-to-location-issue/143241 "2020-05-10T15:54:23Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pendali](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/pendali/32/765848_2.png) [@Pendali](https://forums.unrealengine.com/u/Pendali)\
**Post date:** [May 10, 2020, 3:54pm UTC](https://forums.unrealengine.com/t/simple-move-to-location-issue/143241/1 "2020-05-10T15:54:23Z")

</div>

So I’m dabbling around with unreal engine using the “Topdown example preset”, for a click to walk game.  
My character preset is using the “Simple move to location” node, but it always stops 0.5 meter away from the clicked location, this seams to be the default behavior and is a problem. Someone sugested I should lower my Acceptance radius. Does Simple move have that somehow? or can I use Move to Location on a player controlled character as well? 🙂

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [May 10, 2020, 7:21pm UTC](https://forums.unrealengine.com/t/simple-move-to-location-issue/143241/2 "2020-05-10T19:21:36Z")

</div>

> [@Pendali](#):
>
> So I’m dabbling around with unreal engine using the “Topdown example preset”, for a click to walk game.  
> My character preset is using the “Simple move to location” node, but it always stops 0.5 meter away from the clicked location, this seams to be the default behavior and is a problem. Someone sugested I should lower my Acceptance radius. Does Simple move have that somehow? or can I use Move to Location on a player controlled character as well? 🙂

What about MoveToLocationOrActor? It has an option to ignore collision.

---

<div class="post-metadata">

**Author:** ![Pendali](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/pendali/32/765848_2.png) [@Pendali](https://forums.unrealengine.com/u/Pendali)\
**Post date:** [May 10, 2020, 7:29pm UTC](https://forums.unrealengine.com/t/simple-move-to-location-issue/143241/3 "2020-05-10T19:29:31Z")

</div>

> [@ClockworkOcean](#):
>
> What about MoveToLocationOrActor? It has an option to ignore collision.

I will try. Does that work in the Player controller?? Like simple move to?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [May 10, 2020, 7:35pm UTC](https://forums.unrealengine.com/t/simple-move-to-location-issue/143241/4 "2020-05-10T19:35:39Z")

</div>

> [@Pendali](#):
>
> I will try. Does that work in the Player controller?? Like simple move to?

Same sort of thing I think…

---

<div class="post-metadata">

**Author:** ![Pendali](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/pendali/32/765848_2.png) [@Pendali](https://forums.unrealengine.com/u/Pendali)\
**Post date:** [May 10, 2020, 9:02pm UTC](https://forums.unrealengine.com/t/simple-move-to-location-issue/143241/5 "2020-05-10T21:02:24Z")

</div>

> [@ClockworkOcean](#):
>
> Same sort of thing I think…

I wonder if the player controller might not be compatible with “move to location”..  
I’m starting to think maybe I’m not ment to do it this way ^^,

---

<div class="post-metadata">

**Author:** ![ste1nar](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ste1nar](https://forums.unrealengine.com/u/ste1nar)\
**Post date:** [May 10, 2020, 9:16pm UTC](https://forums.unrealengine.com/t/simple-move-to-location-issue/143241/6 "2020-05-10T21:16:31Z")

</div>

![MoveTo.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/9/5/9501c3bdf493fb704ce8243f28ee665de8878b84.png)

I haven’t done a lot of ai moving but the little I have done, I can’t really get a good result. Pawn either stops before the goal or it starts pathing weirdly the last bit, as well as slowing down. Not really desirable results by default.

---

<div class="post-metadata">

**Author:** ![Pendali](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/pendali/32/765848_2.png) [@Pendali](https://forums.unrealengine.com/u/Pendali)\
**Post date:** [May 10, 2020, 9:54pm UTC](https://forums.unrealengine.com/t/simple-move-to-location-issue/143241/7 "2020-05-10T21:54:49Z")

</div>

Some people said It should get more accurate if I turned down the “Acceptance radius”, but I cant seem to get any of the nodes that have that setting working with the “topdown example” project.  
(I’m probably forgetting some setting or something)  
I wonder why “simple move to” stops before reaching the target. How does it even calculate if it’s reached there or not? is it the collision box of the player?

---

<div class="post-metadata">

**Author:** ![ste1nar](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ste1nar](https://forums.unrealengine.com/u/ste1nar)\
**Post date:** [May 10, 2020, 10:14pm UTC](https://forums.unrealengine.com/t/simple-move-to-location-issue/143241/8 "2020-05-10T22:14:00Z")

</div>

By default the topdown starter has a player controller which is not an AI controller.  
I’m not sure of the AI MoveTo Task would work with a pc but I am guessing not.  
And yes, it seems to be when the character capsule overlaps the location, but… how would it work for a pawn? Haven’t tried.

---

<div class="post-metadata">

**Author:** ![Capn\_C4ke](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/capn_c4ke/32/1194596_2.png) [@Capn\_C4ke](https://forums.unrealengine.com/u/Capn_C4ke)\
**Post date:** [May 11, 2020, 4:35am UTC](https://forums.unrealengine.com/t/simple-move-to-location-issue/143241/9 "2020-05-11T04:35:27Z")

</div>

The issue does in fact lie within the acceptance radius, it is not the collision, simple move to in not that much difference to move to location, so I would recommend switching it. Just set the acceptance radius to 0, nothing more, nothing less

---

<div class="post-metadata">

**Author:** ![Pendali](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/pendali/32/765848_2.png) [@Pendali](https://forums.unrealengine.com/u/Pendali)\
**Post date:** [May 11, 2020, 11:46am UTC](https://forums.unrealengine.com/t/simple-move-to-location-issue/143241/10 "2020-05-11T11:46:18Z")

</div>

> [@Capn\_C4ke](#):
>
> The issue does in fact lie within the acceptance radius, it is not the collision, simple move to in not that much difference to move to location, so I would recommend switching it. Just set the acceptance radius to 0, nothing more, nothing less

Hi, I finally got it working by adding a custom AI controller, but I have a smal question remaining:  
Now I dragged my player into the game, and press play, the character will walk correctly to the clicked location. (which is what I had problems with)

My issue is:  
if I use the “Player start” my character does not move, and  
if I use the character placed in the level, the character moves fine, but the camera does not follow him.

This is probably some obvious setting, but I’m quite new to the “game” side of unreal. So any insights would be greatly appreciated 🙂

---

<div class="post-metadata">

**Author:** ![exadi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@exadi](https://forums.unrealengine.com/u/exadi)\
**Post date:** [May 11, 2020, 12:46pm UTC](https://forums.unrealengine.com/t/simple-move-to-location-issue/143241/11 "2020-05-11T12:46:20Z")

</div>

In your character blueprint details tab, find Pawn section and adjust Auto Possess AI to your needs.

---

<div class="post-metadata">

**Author:** ![Pendali](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/pendali/32/765848_2.png) [@Pendali](https://forums.unrealengine.com/u/Pendali)\
**Post date:** [May 11, 2020, 3:44pm UTC](https://forums.unrealengine.com/t/simple-move-to-location-issue/143241/12 "2020-05-11T15:44:33Z")

</div>

> [@exadi](#):
>
> In your character blueprint details tab, find Pawn section and adjust Auto Possess AI to your needs.

yes, I’ve played around with this setting, It seams to me that the moment the player is possessed, then it starts using the old player controller instead of the new AIController that I made.

I’ve been reading some responses from other ppl online:

One guy said:

> [@](#):
>
> I had this problem with a tile game as well, using navmesh to have simpler movement, I used an AI controller, controlled by a player controller while it was player’s turn, so I used move to location. And even with the most precise radius value I still had misplacement of about 5 to 10 cm so I ended up doing a quick teleport at the end of movement

_(5- 10 cm is accurate enough for my needs so I don’t need to do that bit)_  
and

> [@](#):
>
> if the character is entirely controlled by AI, player is not possessing it any more so I guess the camera inside the character is not used anymore.  
> Personrally even if I started with top down I tweaked it so much I can’t really help on the default character 😛 For the camera I created another (this time player controlled) pawn containing just a camera and following the currently controlled character.

Soo… I guess I’m wondering does this approach sound viable? and Should I make a Player controlled camera and then attach it to my character somehow?

---

<div class="post-metadata">

**Author:** ![Pendali](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/pendali/32/765848_2.png) [@Pendali](https://forums.unrealengine.com/u/Pendali)\
**Post date:** [May 11, 2020, 7:22pm UTC](https://forums.unrealengine.com/t/simple-move-to-location-issue/143241/13 "2020-05-11T19:22:09Z")

</div>

So It seams that having an “empty character” with just a camera, follow my AICharacter could be a viable solution.  
I tried stripping down a standard character and just add a camera in there. This follows my AIController character quite nicely, but when they both get to the destination they start colliding into each other. …there has to be a simpler solution than this. 😕

---

<div class="post-metadata">

**Author:** ![exadi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@exadi](https://forums.unrealengine.com/u/exadi)\
**Post date:** [May 12, 2020, 6:38am UTC](https://forums.unrealengine.com/t/simple-move-to-location-issue/143241/14 "2020-05-12T06:38:51Z")

</div>

You can still use a camera of character possessed by AI. There is SetViewTargetWithBlend function available in player controller blueprint. Just pin AI’s character into NewViewTarget and you will use this camera.

---

<div class="post-metadata">

**Author:** ![Pendali](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/pendali/32/765848_2.png) [@Pendali](https://forums.unrealengine.com/u/Pendali)\
**Post date:** [May 12, 2020, 1:26pm UTC](https://forums.unrealengine.com/t/simple-move-to-location-issue/143241/15 "2020-05-12T13:26:00Z")

</div>

> [@exadi](#):
>
> You can still use a camera of character possessed by AI. There is SetViewTargetWithBlend function available in player controller blueprint. Just pin AI’s character into NewViewTarget and you will use this camera.

Very interesting. This is kind of promising.  
When i set it in the Character controller, the camera view moves the center mass of the target.  
The same noes in the level blueprint correctly transitions the camera to the Top down view.  
(So this is what I want)  
However as It transitions, the inputs from the character controller gradually stops to take effect.  
Where is the best place to add camera control back in? (zoom in and rotate and so on)

The AI controlled character does not seem to accept inputs…

---

<div class="post-metadata">

**Author:** ![exadi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@exadi](https://forums.unrealengine.com/u/exadi)\
**Post date:** [May 12, 2020, 7:01pm UTC](https://forums.unrealengine.com/t/simple-move-to-location-issue/143241/16 "2020-05-12T19:01:21Z")

</div>

Mind to show how you are doing it right now? It should be easier to point you in the right direction.

---

<div class="post-metadata">

**Author:** ![Pendali](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/pendali/32/765848_2.png) [@Pendali](https://forums.unrealengine.com/u/Pendali)\
**Post date:** [May 12, 2020, 7:30pm UTC](https://forums.unrealengine.com/t/simple-move-to-location-issue/143241/17 "2020-05-12T19:30:55Z")

</div>

> [@exadi](#):
>
> Mind to show how you are doing it right now? It should be easier to point you in the right direction.

Great News! 😃

I finally managed to get it working with the help of your suggestion. (The “_SetViewTargetWithBlend_”)  
So basically I just needed to make a new empty pawn and slave it to the AI-controlled character, then  
instead of the input keybindings (that was on the character) I made custom events.  
(because the key-inputs where no longer working when the character was not “the player”)  
These I triggered with a reference to my character (and camera) from the pawn with a copy of my key-inputs.

Thank you for pointing me in the right direction! 🙂

---

<div class="post-metadata">

**Author:** ![exadi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@exadi](https://forums.unrealengine.com/u/exadi)\
**Post date:** [May 13, 2020, 5:38pm UTC](https://forums.unrealengine.com/t/simple-move-to-location-issue/143241/18 "2020-05-13T17:38:45Z")

</div>

Hah! Glad you managed to get it working!
