# AI

**URL:** https://forums.unrealengine.com/c/development-discussion/programming-scripting/ai/128.md?page=9

[Latest](https://forums.unrealengine.com/latest.md) · [Categories](https://forums.unrealengine.com/categories.md) · [Tags](https://forums.unrealengine.com/tags.md)

**Page:** 10

---

## [StateTree Poor Performance](https://forums.unrealengine.com/t/statetree-poor-performance/2487894)

<div class="topic-metadata">

**Author:** [@wilberolive](https://forums.unrealengine.com/u/wilberolive)\
**Replies:** 0\
**Last updated:** [May 3, 2025, 4:30am UTC](https://forums.unrealengine.com/t/statetree-poor-performance/2487894 "2025-05-03T04:30:53Z")

</div>

I have an AI built using a Behavior Tree. The AI just has two states, Idle and Task. It sits in the idle state and wanders around until given a task, which it then moves to, completes and returns to the idle wander. If I…

---

## [Patrol Location from quickstart guide doesn't work ](https://forums.unrealengine.com/t/patrol-location-from-quickstart-guide-doesnt-work/2485179)

<div class="topic-metadata">

**Author:** [@Solaire301](https://forums.unrealengine.com/u/Solaire301)\
**Replies:** 1\
**Last updated:** [May 2, 2025, 7:40am UTC](https://forums.unrealengine.com/t/patrol-location-from-quickstart-guide-doesnt-work/2485179 "2025-05-02T07:40:38Z")

</div>

Everything runs fine i have checked nothing is missing all the variables are editable and good but when i launch simulation and look at the BT i see that the patrollocation values change super fast and the character neve…

---

## [AI don't Move](https://forums.unrealengine.com/t/ai-dont-move/2484894)

<div class="topic-metadata">

**Author:** [@sehwa](https://forums.unrealengine.com/u/sehwa)\
**Replies:** 0\
**Last updated:** [May 1, 2025, 9:44am UTC](https://forums.unrealengine.com/t/ai-dont-move/2484894 "2025-05-01T09:44:46Z")

</div>

Hi, I’m making a game where ai and players can fight right now. I got into trouble today while trying to make Potion. I thought it would be nice if only the player overlapped with potion. So I created a profile for the …

---

## [Create Mesh / Volume Shapes from Spline?](https://forums.unrealengine.com/t/create-mesh-volume-shapes-from-spline/481596)

<div class="topic-metadata">

**Author:** [@Tettey\_Nartey](https://forums.unrealengine.com/u/Tettey_Nartey)\
**Replies:** 10\
**Last updated:** [May 1, 2025, 5:13am UTC](https://forums.unrealengine.com/t/create-mesh-volume-shapes-from-spline/481596 "2025-05-01T05:13:28Z")

</div>

So I wanna know is it possible to create a Mesh Shape from the Spline tool? I’ve seen this being done only and ONLY once in a video but literally nobody has something on this. I ask this because I thought it’d be cool t…

---

## [AI Is Not Moving How Do I Fix It?](https://forums.unrealengine.com/t/ai-is-not-moving-how-do-i-fix-it/2483026)

<div class="topic-metadata">

**Author:** [@sehwa](https://forums.unrealengine.com/u/sehwa)\
**Replies:** 0\
**Last updated:** [April 30, 2025, 10:20am UTC](https://forums.unrealengine.com/t/ai-is-not-moving-how-do-i-fix-it/2483026 "2025-04-30T10:20:47Z")

</div>

Hi, I’m making a game where ai and players can fight right now. I got into trouble today while trying to make Potion. I thought it would be nice if only the player overlapped with potion. So I created a profile for the …

---

## [State tree event trigger crashing? ](https://forums.unrealengine.com/t/state-tree-event-trigger-crashing/2309841)

<div class="topic-metadata">

**Author:** [@RealSomepotato](https://forums.unrealengine.com/u/RealSomepotato)\
**Replies:** 1\
**Last updated:** [April 29, 2025, 1:11pm UTC](https://forums.unrealengine.com/t/state-tree-event-trigger-crashing/2309841 "2025-04-29T13:11:25Z")

</div>

Hello! I’m attempting to use the state tree like so: Basically, I have two actions, move and attack. Both are triggered by a player input, and the target is provided by a struct passed to the event. The Move phase o…

---

## [How do I use RunBehaviorDynamic in the behavior tree?](https://forums.unrealengine.com/t/how-do-i-use-runbehaviordynamic-in-the-behavior-tree/462127)

<div class="topic-metadata">

**Author:** [@SebGallop](https://forums.unrealengine.com/u/SebGallop)\
**Replies:** 5\
**Last updated:** [October 11, 2022, 3:09pm UTC](https://forums.unrealengine.com/t/how-do-i-use-runbehaviordynamic-in-the-behavior-tree/462127 "2022-10-11T15:09:41Z")

</div>

Hello, I need a bit of help understanding how to use the RunBehaviorDynamic task in behavior trees. I am working on an open-world RPG game and I wanted to create a single AI that all NPCs in the game would use. This AI …

---

## [CommonGame Plugin](https://forums.unrealengine.com/t/commongame-plugin/2477287)

<div class="topic-metadata">

**Author:** [@Tochi-Truc](https://forums.unrealengine.com/u/Tochi-Truc)\
**Replies:** 5\
**Last updated:** [April 27, 2025, 2:43am UTC](https://forums.unrealengine.com/t/commongame-plugin/2477287 "2025-04-27T02:43:04Z")

</div>

Hi Devs, In my project i implemented CommonGame plugin to use UI Layout system, in my c++ class this condition return null so can not get RootLayout: This is snippet code: if (UPrimaryGameLayout\* RootLayout = Policy-\>G…

---

## [BehaviourTree stuck in MoveTo if starting Behaviour Tree from OnPossess() in AIController in c++](https://forums.unrealengine.com/t/behaviourtree-stuck-in-moveto-if-starting-behaviour-tree-from-onpossess-in-aicontroller-in-c/2472679)

<div class="topic-metadata">

**Author:** [@wortback1](https://forums.unrealengine.com/u/wortback1)\
**Replies:** 0\
**Last updated:** [April 23, 2025, 8:19pm UTC](https://forums.unrealengine.com/t/behaviourtree-stuck-in-moveto-if-starting-behaviour-tree-from-onpossess-in-aicontroller-in-c/2472679 "2025-04-23T20:19:02Z")

</div>

Hello! I ran into a weird bug where a behaviour tree basically gets stuck in the MoveTo node, despite the character actually reaching the destination. I use a custom BP AIController class that is derived from a custom c…

---

## [A way to override or bind OnMoveCompleted inside pawn class?](https://forums.unrealengine.com/t/a-way-to-override-or-bind-onmovecompleted-inside-pawn-class/435392)

<div class="topic-metadata">

**Author:** [@Sardorian](https://forums.unrealengine.com/u/Sardorian)\
**Replies:** 2\
**Last updated:** [April 24, 2025, 10:50am UTC](https://forums.unrealengine.com/t/a-way-to-override-or-bind-onmovecompleted-inside-pawn-class/435392 "2025-04-24T10:50:55Z")

</div>

Is there way to override or bind to event aicontroller-\>onmovecompleted event inside pawn class?

---

## [3D navigation ](https://forums.unrealengine.com/t/3d-navigation/2471812)

<div class="topic-metadata">

**Author:** [@Yuta\_0808](https://forums.unrealengine.com/u/Yuta_0808)\
**Replies:** 1\
**Last updated:** [April 23, 2025, 2:22pm UTC](https://forums.unrealengine.com/t/3d-navigation/2471812 "2025-04-23T14:22:08Z")

</div>

How to create 3D navigation mesh

---

## [Set focal point AI not working](https://forums.unrealengine.com/t/set-focal-point-ai-not-working/330364)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_da55dfff](https://forums.unrealengine.com/u/anonymous_user_da55dfff)\
**Replies:** 6\
**Last updated:** [April 21, 2025, 6:53pm UTC](https://forums.unrealengine.com/t/set-focal-point-ai-not-working/330364 "2025-04-21T18:53:25Z")

</div>

I am using an enemy which after an event must change its direction to the player.I am using set focal point …but it is not working…I don’t know why? thanks in advance

---

## [Pawn Sensor doesn't work on spawned actor](https://forums.unrealengine.com/t/pawn-sensor-doesnt-work-on-spawned-actor/387000)

<div class="topic-metadata">

**Author:** [@Lord\_Caine](https://forums.unrealengine.com/u/Lord_Caine)\
**Replies:** 20\
**Last updated:** [April 19, 2025, 1:21pm UTC](https://forums.unrealengine.com/t/pawn-sensor-doesnt-work-on-spawned-actor/387000 "2025-04-19T13:21:05Z")

</div>

Hi There, I have a blueprint with a pawn sensor in it. When I manually place it on my level it works fine. When I spawn the the same blueprint the pawn sensor never seems to activate. I put breakpoints on begin play …

---

## [Custom EQS generator and Pawn still not working 4.12](https://forums.unrealengine.com/t/custom-eqs-generator-and-pawn-still-not-working-4-12/359507)

<div class="topic-metadata">

**Author:** [@KhalimWu](https://forums.unrealengine.com/u/KhalimWu)\
**Replies:** 7\
**Last updated:** [April 17, 2025, 6:39pm UTC](https://forums.unrealengine.com/t/custom-eqs-generator-and-pawn-still-not-working-4-12/359507 "2025-04-17T18:39:03Z")

</div>

EQS Testing pawn working with regular EQS generator. thanks. problem is now with customs. either i am getting something wrong or its still broken. hard to find out the real reason if you dont fully dominate the EQS syste…

---

## [EQS Testing Pawn doesn't show any visual clues](https://forums.unrealengine.com/t/eqs-testing-pawn-doesnt-show-any-visual-clues/407368)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_22a3706a](https://forums.unrealengine.com/u/anonymous_user_22a3706a)\
**Replies:** 2\
**Last updated:** [April 17, 2025, 6:24pm UTC](https://forums.unrealengine.com/t/eqs-testing-pawn-doesnt-show-any-visual-clues/407368 "2025-04-17T18:24:39Z")

</div>

Repro: Create a simple EQS query, say, Simple Grid. Create a blueprint subclass of AIModule.EQSTestingPawn. Drag what you made in step 1 from Content Browser to the property “Query Template” of what you made in step 2. …

---

## [What is the proper way to use Async Pathfinding?](https://forums.unrealengine.com/t/what-is-the-proper-way-to-use-async-pathfinding/467423)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_a3a170d9](https://forums.unrealengine.com/u/anonymous_user_a3a170d9)\
**Replies:** 3\
**Last updated:** [April 17, 2025, 3:55pm UTC](https://forums.unrealengine.com/t/what-is-the-proper-way-to-use-async-pathfinding/467423 "2025-04-17T15:55:08Z")

</div>

I created a custom AI MoveTo node that uses the Async Path request instead of sync path requests. My current flow for using it is as follows: ExecuteTask is called and I call the function FindPathAsync to receive a ui…

---

## [Hello! How to make advanced Enemy\_Ai for horror games? ](https://forums.unrealengine.com/t/hello-how-to-make-advanced-enemy-ai-for-horror-games/2455110)

<div class="topic-metadata">

**Author:** [@superduper123454](https://forums.unrealengine.com/u/superduper123454)\
**Replies:** 1\
**Last updated:** [April 13, 2025, 9:49pm UTC](https://forums.unrealengine.com/t/hello-how-to-make-advanced-enemy-ai-for-horror-games/2455110 "2025-04-13T21:49:41Z")

</div>

Hello, I am making a horror game, but I could not find a resource that teaches how to make an advanced Enemy\_Ai. I will not make such a simple Ai. I’m thinking of Enemy\_Ai in games like “The Classroom” etc… It will be ab…

---

## [Characters Not Moving in Levels 1 & 4 After Packaging (UE5.4 + PaperZD)](https://forums.unrealengine.com/t/characters-not-moving-in-levels-1-4-after-packaging-ue5-4-paperzd/2452115)

<div class="topic-metadata">

**Author:** [@TheHunter117256](https://forums.unrealengine.com/u/TheHunter117256)\
**Replies:** 0\
**Last updated:** [April 12, 2025, 2:19am UTC](https://forums.unrealengine.com/t/characters-not-moving-in-levels-1-4-after-packaging-ue5-4-paperzd/2452115 "2025-04-12T02:19:11Z")

</div>

Hi, I’m having a strange issue with my 2D/3D game using Unreal Engine 5.4 and PaperZD. In my game, the characters move as expected in Levels 2 and 3. However, in Levels 1 and 4, the characters are not moving after packa…

---

## [AI randomly stops moving](https://forums.unrealengine.com/t/ai-randomly-stops-moving/426050)

<div class="topic-metadata">

**Author:** [@Sabzanotto7](https://forums.unrealengine.com/u/Sabzanotto7)\
**Replies:** 4\
**Last updated:** [April 10, 2025, 11:12am UTC](https://forums.unrealengine.com/t/ai-randomly-stops-moving/426050 "2025-04-10T11:12:00Z")

</div>

Hello, I have recently been creating the boss AI character for my game. I have the boss set up so that it will chase the player around and if its within a certain distance of the player it will a melee attack and if the…

---

## [BT MoveDirectlyTowards does not work without NavMesh](https://forums.unrealengine.com/t/bt-movedirectlytowards-does-not-work-without-navmesh/357417)

<div class="topic-metadata">

**Author:** [@BhaaL](https://forums.unrealengine.com/u/BhaaL)\
**Replies:** 8\
**Last updated:** [April 9, 2025, 3:01am UTC](https://forums.unrealengine.com/t/bt-movedirectlytowards-does-not-work-without-navmesh/357417 "2025-04-09T03:01:25Z")

</div>

This is on 4.12 Preview 2 (Launcher Version: 4.12.0-2962397+++UE4+Release-4.12), I tried to make a floating AI move around in 3D space using “Move Directly Towards” (which, according to the Tooltip, moves directly to the…

---

## [Non-matching iteration numbers](https://forums.unrealengine.com/t/non-matching-iteration-numbers/1355048)

<div class="topic-metadata">

**Author:** [@LKVR](https://forums.unrealengine.com/u/LKVR)\
**Replies:** 4\
**Last updated:** [April 7, 2025, 1:21pm UTC](https://forums.unrealengine.com/t/non-matching-iteration-numbers/1355048 "2025-04-07T13:21:24Z")

</div>

Hi, I am using the Learning Agents plugin and have extended the learning to drive tutorial into C++ and to add obstacle avoidance. The simulation begins as expected with clear progress made, but after 5-10 minutes so…

---

## [Move To Location or Actor Bug](https://forums.unrealengine.com/t/move-to-location-or-actor-bug/405939)

<div class="topic-metadata">

**Author:** [@wilberolive](https://forums.unrealengine.com/u/wilberolive)\
**Replies:** 11\
**Last updated:** [April 5, 2025, 6:49am UTC](https://forums.unrealengine.com/t/move-to-location-or-actor-bug/405939 "2025-04-05T06:49:24Z")

</div>

Move to Location or Actor fails when the Goal Location is outside the nav mesh, but Use Pathfinding is set to False. The documentation indicates that when Use Pathfinding is False, the AI agent will move in a straight l…

---

## [How set my AIs behavior depending on what it is investigating?](https://forums.unrealengine.com/t/how-set-my-ais-behavior-depending-on-what-it-is-investigating/2438601)

<div class="topic-metadata">

**Author:** [@Beefjerkyzxz](https://forums.unrealengine.com/u/Beefjerkyzxz)\
**Replies:** 2\
**Last updated:** [April 4, 2025, 4:09pm UTC](https://forums.unrealengine.com/t/how-set-my-ais-behavior-depending-on-what-it-is-investigating/2438601 "2025-04-04T16:09:16Z")

</div>

Hello. I am new to making AI and currently trying to make a stealth game. I have made a datatable of different things an AI might hear or see (Perceptibles) so that I can easily adjust their relative priority and other d…

---

## [How to make a pawn stop registering with AI Perception](https://forums.unrealengine.com/t/how-to-make-a-pawn-stop-registering-with-ai-perception/368928)

<div class="topic-metadata">

**Author:** [@VoidGoat](https://forums.unrealengine.com/u/VoidGoat)\
**Replies:** 11\
**Last updated:** [April 4, 2025, 11:56am UTC](https://forums.unrealengine.com/t/how-to-make-a-pawn-stop-registering-with-ai-perception/368928 "2025-04-04T11:56:21Z")

</div>

I am using AI perception for my NPC AI but when a character is killed the other AI characters still register it in their perception. Is there a way to make a pawn not be perceived?

---

## [Find Closest Point On NavMesh- AIMoveTo Actor's Location When Actor Is Off NavMesh](https://forums.unrealengine.com/t/find-closest-point-on-navmesh-aimoveto-actors-location-when-actor-is-off-navmesh/2438179)

<div class="topic-metadata">

**Author:** [@Selzier](https://forums.unrealengine.com/u/Selzier)\
**Replies:** 0\
**Last updated:** [April 3, 2025, 6:56pm UTC](https://forums.unrealengine.com/t/find-closest-point-on-navmesh-aimoveto-actors-location-when-actor-is-off-navmesh/2438179 "2025-04-03T18:56:14Z")

</div>

This is an Unreal 5.5 Blueprint tutorial for finding the closest navigable point to X actor. Actors can have the ‘Can Ever Affect Navigation’ bool set which will exclude their area from the generated NavMesh. This Funct…

---

## [Navmesh Bugs in UE 5.5](https://forums.unrealengine.com/t/navmesh-bugs-in-ue-5-5/2066079)

<div class="topic-metadata">

**Author:** [@Sarlack](https://forums.unrealengine.com/u/Sarlack)\
**Replies:** 6\
**Last updated:** [April 4, 2025, 12:17am UTC](https://forums.unrealengine.com/t/navmesh-bugs-in-ue-5-5/2066079 "2025-04-04T00:17:36Z")

</div>

Bug 1 :beetle: Navmesh is not being generated on brush components. I have a couple testing levels where I use brush boxes for floors. I checked the different levels and it is only generating on static meshes. I double c…

---

## [I have not numpad how can i use debug ai perception? command line shortcuts not work](https://forums.unrealengine.com/t/i-have-not-numpad-how-can-i-use-debug-ai-perception-command-line-shortcuts-not-work/2435116)

<div class="topic-metadata">

**Author:** [@rzade](https://forums.unrealengine.com/u/rzade)\
**Replies:** 1\
**Last updated:** [April 1, 2025, 8:59pm UTC](https://forums.unrealengine.com/t/i-have-not-numpad-how-can-i-use-debug-ai-perception-command-line-shortcuts-not-work/2435116 "2025-04-01T20:59:44Z")

</div>

I have not numpad how can i use debug ai perception? command line shortcuts not work

---

## [UE 5.1, how AI visual perception can aim at a character's or pawn's head, rather than the origin location coordinates.](https://forums.unrealengine.com/t/ue-5-1-how-ai-visual-perception-can-aim-at-a-characters-or-pawns-head-rather-than-the-origin-location-coordinates/2424346)

<div class="topic-metadata">

**Author:** [@EV-Lw](https://forums.unrealengine.com/u/EV-Lw)\
**Replies:** 2\
**Last updated:** [March 31, 2025, 1:11am UTC](https://forums.unrealengine.com/t/ue-5-1-how-ai-visual-perception-can-aim-at-a-characters-or-pawns-head-rather-than-the-origin-location-coordinates/2424346 "2025-03-31T01:11:04Z")

</div>

Thanks\>\>\>\>

---

## [MoveTo stops when manually rebuilding nav system and runtime generation is Dynamic](https://forums.unrealengine.com/t/moveto-stops-when-manually-rebuilding-nav-system-and-runtime-generation-is-dynamic/2428878)

<div class="topic-metadata">

**Author:** [@masscad](https://forums.unrealengine.com/u/masscad)\
**Replies:** 0\
**Last updated:** [March 30, 2025, 10:21am UTC](https://forums.unrealengine.com/t/moveto-stops-when-manually-rebuilding-nav-system-and-runtime-generation-is-dynamic/2428878 "2025-03-30T10:21:12Z")

</div>

Hi, does anyone understand this behavior? Given: Project Settings \> Navigation Mesh \> Runtime Generation = Dynamic Input Key with function MoveMyAI() to trigger a AIController::MoveTo() or MoveToLocation() with a targ…

---

## [Behavior Tree loops back to root ](https://forums.unrealengine.com/t/behavior-tree-loops-back-to-root/2427803)

<div class="topic-metadata">

**Author:** [@Pomiculteur](https://forums.unrealengine.com/u/Pomiculteur)\
**Replies:** 3\
**Last updated:** [March 30, 2025, 5:26am UTC](https://forums.unrealengine.com/t/behavior-tree-loops-back-to-root/2427803 "2025-03-30T05:26:37Z")

</div>

Hello! I’ve been trying to learn a bit more about Behavior Tree to control NPCs. I’ve made this really simple behavior tree which make the NPC move to a location, then wait 5 seconds. For some reason, the every tim…

[Previous page](https://forums.unrealengine.com/c/development-discussion/programming-scripting/ai/128.md?page=8)

[Next page](https://forums.unrealengine.com/c/development-discussion/programming-scripting/ai/128.md?page=10)
