# Ue4 and Ue5 AI Move To Difference

**URL:** <https://forums.unrealengine.com/t/ue4-and-ue5-ai-move-to-difference/2295825>\
**Category:** AI\
**Tags:** unreal-engine, question\
**Created:** [January 21, 2025, 8:27pm UTC](https://forums.unrealengine.com/t/ue4-and-ue5-ai-move-to-difference/2295825 "2025-01-21T20:27:08Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Slygear](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Slygear](https://forums.unrealengine.com/u/Slygear)\
**Post date:** [January 21, 2025, 8:27pm UTC](https://forums.unrealengine.com/t/ue4-and-ue5-ai-move-to-difference/2295825/1 "2025-01-21T20:27:08Z")

</div>

Hello, as you can see in the videos below, the code I made in Ue4 does not work in Ue5, there is no difference. I do everything exactly the same. Is there a change in Ue5 related to AI Move To or navmesh?

---

<div class="post-metadata">

**Author:** ![Mind-Brain](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mind-brain/32/906573_2.png) [@Mind-Brain](https://forums.unrealengine.com/u/Mind-Brain)\
**Post date:** [January 22, 2025, 2:04am UTC](https://forums.unrealengine.com/t/ue4-and-ue5-ai-move-to-difference/2295825/2 "2025-01-22T02:04:27Z")

</div>

Hey @Slygear!

First things first: If you’re copy/pasting… you’re gonna run into this constantly as the nodes have individual IDs that get changed between versions.

Now, if you’re _Not_ doing that, as far as I can tell your code is fine here. Maybe Target isn’t getting set? You can also try to put in a destination using GetActorLocation?

Give that a shot and let us know what happens!

---

<div class="post-metadata">

**Author:** ![Slygear](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Slygear](https://forums.unrealengine.com/u/Slygear)\
**Post date:** [January 23, 2025, 3:38pm UTC](https://forums.unrealengine.com/t/ue4-and-ue5-ai-move-to-difference/2295825/3 "2025-01-23T15:38:52Z")

</div>

Hello,

I used Get Actor Location but unfortunately it didn’t work. I have no idea why I’m facing such a problem, I’ve tried many things but I still can’t solve it.

---

<div class="post-metadata">

**Author:** ![Mind-Brain](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mind-brain/32/906573_2.png) [@Mind-Brain](https://forums.unrealengine.com/u/Mind-Brain)\
**Post date:** [January 23, 2025, 8:50pm UTC](https://forums.unrealengine.com/t/ue4-and-ue5-ai-move-to-difference/2295825/4 "2025-01-23T20:50:18Z")

</div>

Hmm. BP\_Build should have an ID after it like BP\_Build\_0 when printed.

Try using an IsValid? check (gray one) and passing in “Target” before running the AI MoveTo.  
Is this returning any sort of errors in the window after you stop the game?

You can try making “Target” a public variable then selecting the NPC and dragging the BP\_Build into the variable to set it pre-load, as well.

---

<div class="post-metadata">

**Author:** ![Slygear](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Slygear](https://forums.unrealengine.com/u/Slygear)\
**Post date:** [January 23, 2025, 11:07pm UTC](https://forums.unrealengine.com/t/ue4-and-ue5-ai-move-to-difference/2295825/5 "2025-01-23T23:07:44Z")

</div>

BP\_Build is valid and does not give any errors.

I have tried many solutions on this forum, but it still doesn’t work. If I can’t solve the problem tomorrow, I will try it in the old version of Ue5. For example, I can try to use version 5.1.1, but I don’t think that will solve the problem. I don’t think it is related to Ue 5.5.1

---

<div class="post-metadata">

**Author:** ![Mind-Brain](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mind-brain/32/906573_2.png) [@Mind-Brain](https://forums.unrealengine.com/u/Mind-Brain)\
**Post date:** [January 24, 2025, 1:13am UTC](https://forums.unrealengine.com/t/ue4-and-ue5-ai-move-to-difference/2295825/6 "2025-01-24T01:13:36Z")

</div>

Hmm, [AI move to not working - #15 by Muda\_Gaming](https://forums.unrealengine.com/t/ai-move-to-not-working/432469/15) has a lot of solutions for this, and it looks like there are a few things that could be causing it.

Have you tried giving it a vector location you know for sure it can reach instead of giving it the location of the BP\_Build? It might be failing because it knows it can’t go inside the hole in the navmesh the BP\_Build is creating.

---

<div class="post-metadata">

**Author:** ![Slygear](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Slygear](https://forums.unrealengine.com/u/Slygear)\
**Post date:** [January 24, 2025, 10:52am UTC](https://forums.unrealengine.com/t/ue4-and-ue5-ai-move-to-difference/2295825/7 "2025-01-24T10:52:00Z")

</div>

I tried the solutions in the topic you directed, but none of them solved my problem. I tried something like this in case it can’t reach the point it needs to go to and it solved the problem, but this is not a solution I want. Because I don’t want AI to get into the mesh. It doesn’t make sense that the same system works in Ue4 but not in Ue5.

---

<div class="post-metadata">

**Author:** ![Mind-Brain](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mind-brain/32/906573_2.png) [@Mind-Brain](https://forums.unrealengine.com/u/Mind-Brain)\
**Post date:** [January 24, 2025, 4:32pm UTC](https://forums.unrealengine.com/t/ue4-and-ue5-ai-move-to-difference/2295825/8 "2025-01-24T16:32:58Z")

</div>

Oh. I see. I went up to check just in case.

On your moveTo, your acceptance radius is 6cm. That’s 6cm from the root of the object, which is still IN the object. It knows it can’t do that, so it fails to pathfind.

If you just raise the acceptance radius it should work fine. That’s a very, very low one, 100 should be good!

---

<div class="post-metadata">

**Author:** ![Slygear](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Slygear](https://forums.unrealengine.com/u/Slygear)\
**Post date:** [January 24, 2025, 4:57pm UTC](https://forums.unrealengine.com/t/ue4-and-ue5-ai-move-to-difference/2295825/9 "2025-01-24T16:57:31Z")

</div>

I tried to increase the Acceptance Radius as you said, but unfortunately the problem is not solved. I am currently downloading Ue 5.1.1 version, if it solves this problem, I will let you know.

---

<div class="post-metadata">

**Author:** ![Slygear](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Slygear](https://forums.unrealengine.com/u/Slygear)\
**Post date:** [January 24, 2025, 6:24pm UTC](https://forums.unrealengine.com/t/ue4-and-ue5-ai-move-to-difference/2295825/10 "2025-01-24T18:24:23Z")

</div>

As you can see in the video, the same code works in Ue 5.1.1.

Ue 5.1.1

Ue 5.5.1

---

<div class="post-metadata">

**Author:** ![Mind-Brain](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mind-brain/32/906573_2.png) [@Mind-Brain](https://forums.unrealengine.com/u/Mind-Brain)\
**Post date:** [January 24, 2025, 7:58pm UTC](https://forums.unrealengine.com/t/ue4-and-ue5-ai-move-to-difference/2295825/11 "2025-01-24T19:58:06Z")

</div>

Okay then. That means this is officially a version bug, would you mind filling out the bug report? The Unreal Engine bug submission form can be found [here](https://epicsupport.force.com/unrealengine/s/). When submitting a report, we highly encourage everyone to include images and videos, but any and all details are helpful!

We may reach out if more information is needed.

Thanks!

---

<div class="post-metadata">

**Author:** ![Slygear](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Slygear](https://forums.unrealengine.com/u/Slygear)\
**Post date:** [January 24, 2025, 9:19pm UTC](https://forums.unrealengine.com/t/ue4-and-ue5-ai-move-to-difference/2295825/12 "2025-01-24T21:19:34Z")

</div>

I filled out the form as detailed as I could. I hope this problem will be solved as soon as possible. I don’t want to go back to version 5.1 😃

---

<div class="post-metadata">

**Author:** ![Mind-Brain](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mind-brain/32/906573_2.png) [@Mind-Brain](https://forums.unrealengine.com/u/Mind-Brain)\
**Post date:** [January 25, 2025, 12:55am UTC](https://forums.unrealengine.com/t/ue4-and-ue5-ai-move-to-difference/2295825/13 "2025-01-25T00:55:10Z")

</div>

If you decide you want to use Behavior trees, I can confirm that the MoveTo Tasks on the BT work just fine! I’m working on a 5.5.1 project that relies on it heavily- So I guarantee no bugs there!

---

<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:** [February 24, 2025, 12:55am UTC](https://forums.unrealengine.com/t/ue4-and-ue5-ai-move-to-difference/2295825/14 "2025-02-24T00:55:26Z")

</div>

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