# AI

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

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

**Page:** 22

---

## [How to stop the pawn exactly where I want? (Tick problem in behavior tree services)](https://forums.unrealengine.com/t/how-to-stop-the-pawn-exactly-where-i-want-tick-problem-in-behavior-tree-services/1851298)

<div class="topic-metadata">

**Author:** [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Replies:** 19\
**Last updated:** [May 13, 2024, 7:40pm UTC](https://forums.unrealengine.com/t/how-to-stop-the-pawn-exactly-where-i-want-tick-problem-in-behavior-tree-services/1851298 "2024-05-13T19:40:10Z")

</div>

I want to stop the pawn exactly at a certain distance (on the red line). But checks happen every tick. So always stop at the next tick. The distance is always greater than desired (Sometimes too big). The error de…

---

## [Can some one tell me where I can find materials about Learning Agent](https://forums.unrealengine.com/t/can-some-one-tell-me-where-i-can-find-materials-about-learning-agent/1848584)

<div class="topic-metadata">

**Author:** [@Noviero](https://forums.unrealengine.com/u/Noviero)\
**Replies:** 0\
**Last updated:** [May 9, 2024, 8:40pm UTC](https://forums.unrealengine.com/t/can-some-one-tell-me-where-i-can-find-materials-about-learning-agent/1848584 "2024-05-09T20:40:12Z")

</div>

I am new to unreal engine. Currently, I am doing project with Machine Learning. I made a behavior tree for NPCs and I want them to enter battle mode when they approach the player at a certain distance. And I want to tra…

---

## [Can't figure out how to set NPC states](https://forums.unrealengine.com/t/cant-figure-out-how-to-set-npc-states/1848130)

<div class="topic-metadata">

**Author:** [@mollmoo](https://forums.unrealengine.com/u/mollmoo)\
**Replies:** 0\
**Last updated:** [May 9, 2024, 2:58pm UTC](https://forums.unrealengine.com/t/cant-figure-out-how-to-set-npc-states/1848130 "2024-05-09T14:58:55Z")

</div>

Hi there! So I’ve been working on a project for a short UE5 course I’ve been doing, and I want to be able to set my NPC states by instance. What I’ve been trying so far is creating an enumerator with the states “Idle”, “…

---

## [Is there a limit for AI perception ?](https://forums.unrealengine.com/t/is-there-a-limit-for-ai-perception/1138912)

<div class="topic-metadata">

**Author:** [@KaidoomDev](https://forums.unrealengine.com/u/KaidoomDev)\
**Replies:** 6\
**Last updated:** [May 8, 2024, 11:49am UTC](https://forums.unrealengine.com/t/is-there-a-limit-for-ai-perception/1138912 "2024-05-08T11:49:05Z")

</div>

Hi, I noticed that when I have let’s say 100 AI in the map the perception stops or become delayed for certain AI, It’s not a max agent limit issue, I already have that high and they all walk around just fine. I can set…

---

## [CrowdFollowingComponent Move Focus does not respect navmesh modifiers?](https://forums.unrealengine.com/t/crowdfollowingcomponent-move-focus-does-not-respect-navmesh-modifiers/1846041)

<div class="topic-metadata">

**Author:** [@FurryOstich](https://forums.unrealengine.com/u/FurryOstich)\
**Replies:** 1\
**Last updated:** [May 8, 2024, 10:51am UTC](https://forums.unrealengine.com/t/crowdfollowingcomponent-move-focus-does-not-respect-navmesh-modifiers/1846041 "2024-05-08T10:51:59Z")

</div>

Hi everyone, I’m developing a pathfollowing component for tanks in my game. I integrated it with the crowd detour logic in the engine. I use GetMoveFocus for every frame in the FollowPathSegment of my component to obt…

---

## [Behavior Tree - Enemy Attacks only once](https://forums.unrealengine.com/t/behavior-tree-enemy-attacks-only-once/1841533)

<div class="topic-metadata">

**Author:** [@Gulli\_Gullile](https://forums.unrealengine.com/u/Gulli_Gullile)\
**Replies:** 1\
**Last updated:** [May 5, 2024, 6:52pm UTC](https://forums.unrealengine.com/t/behavior-tree-enemy-attacks-only-once/1841533 "2024-05-05T18:52:14Z")

</div>

Currently I’m trying to implement an attack mechanic on top of being chased. The enemy chases the player but attacks only once, except if the player moves a bit, than it will attack again. With this tree I’m expecting, …

---

## [behavior tree task:controlled pawn is not valid?](https://forums.unrealengine.com/t/behavior-tree-task-controlled-pawn-is-not-valid/1841630)

<div class="topic-metadata">

**Author:** [@baobao4435](https://forums.unrealengine.com/u/baobao4435)\
**Replies:** 0\
**Last updated:** [May 5, 2024, 6:26pm UTC](https://forums.unrealengine.com/t/behavior-tree-task-controlled-pawn-is-not-valid/1841630 "2024-05-05T18:26:08Z")

</div>

is this a bug?when running the game ,it seems work properly.but if I stop it will prompt me says that controlled pawn is not valid?the pawn never gets destroyed.i tried as picture above. thanks ! additional backgrou…

---

## [should I put one off task into behavior tree?](https://forums.unrealengine.com/t/should-i-put-one-off-task-into-behavior-tree/1841279)

<div class="topic-metadata">

**Author:** [@baobao4435](https://forums.unrealengine.com/u/baobao4435)\
**Replies:** 2\
**Last updated:** [May 5, 2024, 4:47pm UTC](https://forums.unrealengine.com/t/should-i-put-one-off-task-into-behavior-tree/1841279 "2024-05-05T16:47:15Z")

</div>

hi,greetings.quick question. let’s say that we have a pawn.when he got spawn into the level,he would play an animation emerging slowly from underground.the “emerging ” task will only need once.the pawn never do it again…

---

## [AI MoveTo - Slow and Jitter](https://forums.unrealengine.com/t/ai-moveto-slow-and-jitter/389156)

<div class="topic-metadata">

**Author:** [@ShadowGames-Dev](https://forums.unrealengine.com/u/ShadowGames-Dev)\
**Replies:** 6\
**Last updated:** [May 5, 2024, 2:56pm UTC](https://forums.unrealengine.com/t/ai-moveto-slow-and-jitter/389156 "2024-05-05T14:56:21Z")

</div>

I am trying to use a simple Ai move to in order to get my enemy to move to my character when they hear or see them. The enemy moves but is very slow and jitters between facing right and facing left. This is all being…

---

## [Detour Crowd Controller AI getting stuck inside one another](https://forums.unrealengine.com/t/detour-crowd-controller-ai-getting-stuck-inside-one-another/1302138)

<div class="topic-metadata">

**Author:** [@Krileon](https://forums.unrealengine.com/u/Krileon)\
**Replies:** 17\
**Last updated:** [May 5, 2024, 1:11pm UTC](https://forums.unrealengine.com/t/detour-crowd-controller-ai-getting-stuck-inside-one-another/1302138 "2024-05-05T13:11:23Z")

</div>

Has anyone ran into this issue? If there are a decent amount of AI chasing the player they start sliding inside of one another then move at a crawls pace as if their speed was halved. I’ve tried enabling collision betwee…

---

## [AI movement along a path with some deviations](https://forums.unrealengine.com/t/ai-movement-along-a-path-with-some-deviations/721077)

<div class="topic-metadata">

**Author:** [@Tonetfal](https://forums.unrealengine.com/u/Tonetfal)\
**Replies:** 1\
**Last updated:** [May 5, 2024, 11:16am UTC](https://forums.unrealengine.com/t/ai-movement-along-a-path-with-some-deviations/721077 "2024-05-05T11:16:00Z")

</div>

Hi, I’m making an Action Tower Defense game, and I have some issues with making my AI movement be not that robotic. What I mean by that is that by default the AI tends to use the most optimal path for it, making every t…

---

## [Fish AI](https://forums.unrealengine.com/t/fish-ai/1839600)

<div class="topic-metadata">

**Author:** [@ybane](https://forums.unrealengine.com/u/ybane)\
**Replies:** 0\
**Last updated:** [May 4, 2024, 11:52am UTC](https://forums.unrealengine.com/t/fish-ai/1839600 "2024-05-04T11:52:08Z")

</div>

Hey, I’m trying to create a fish AI for my game and struggling with this obstacle. I need my fish to move more smoothly rather from one point to another. The first solution was smothething like this: Here we got 3 …

---

## [Event Execute AI doesn't fire and blackboard key not being set. (More info in description)](https://forums.unrealengine.com/t/event-execute-ai-doesnt-fire-and-blackboard-key-not-being-set-more-info-in-description/1833804)

<div class="topic-metadata">

**Author:** [@Verothis](https://forums.unrealengine.com/u/Verothis)\
**Replies:** 10\
**Last updated:** [May 2, 2024, 2:12pm UTC](https://forums.unrealengine.com/t/event-execute-ai-doesnt-fire-and-blackboard-key-not-being-set-more-info-in-description/1833804 "2024-05-02T14:12:14Z")

</div>

I’m not sure what I’m doing wrong here but the Event Execute AI does not fire at all even when the task is being called. I have tried applying the code to the Event Execute and it works however the blackboard key does no…

---

## [Disabling NavLinks](https://forums.unrealengine.com/t/disabling-navlinks/1834437)

<div class="topic-metadata">

**Author:** [@cvrrytrash](https://forums.unrealengine.com/u/cvrrytrash)\
**Replies:** 1\
**Last updated:** [May 1, 2024, 9:43am UTC](https://forums.unrealengine.com/t/disabling-navlinks/1834437 "2024-05-01T09:43:30Z")

</div>

I was wondering if there’s a way to disable SimpleLinks (pointLinks) in a NavLink Proxy via code, so I can keep the handles in editor, but only the SmartLink works in runtime

---

## [AI / Bot Limit?](https://forums.unrealengine.com/t/ai-bot-limit/398040)

<div class="topic-metadata">

**Author:** [@kevinaboyette](https://forums.unrealengine.com/u/kevinaboyette)\
**Replies:** 5\
**Last updated:** [April 30, 2024, 5:31pm UTC](https://forums.unrealengine.com/t/ai-bot-limit/398040 "2024-04-30T17:31:44Z")

</div>

Is there a limit for AI / Bots? I’m spawning AI actors (that use a Detour AI Controller and Behavior Tree) using the Spawn AI From Class node. Once the count gets around 50, all following spawned actors never move, as …

---

## [How set custom path to character?](https://forums.unrealengine.com/t/how-set-custom-path-to-character/1833097)

<div class="topic-metadata">

**Author:** [@Dementir](https://forums.unrealengine.com/u/Dementir)\
**Replies:** 0\
**Last updated:** [April 30, 2024, 1:30pm UTC](https://forums.unrealengine.com/t/how-set-custom-path-to-character/1833097 "2024-04-30T13:30:01Z")

</div>

Hello. I do RTS and have one problem. When a squad goes around an obstacle, it stacks up at one point. Theoretically I know how to get around the problem. It is necessary to use eqs to check each point of the path for ob…

---

## [Getting AI to Swarm Around the player](https://forums.unrealengine.com/t/getting-ai-to-swarm-around-the-player/814638)

<div class="topic-metadata">

**Author:** [@KinGxSeGaL1](https://forums.unrealengine.com/u/KinGxSeGaL1)\
**Replies:** 5\
**Last updated:** [April 29, 2024, 9:54pm UTC](https://forums.unrealengine.com/t/getting-ai-to-swarm-around-the-player/814638 "2024-04-29T21:54:14Z")

</div>

I have a simple ai that chases the player and attacks when within a specific range and it works ok, however there is a problem where if there are many of this ai chasing the player they basically get stuck behind one ano…

---

## [Why "RVO Avoidance" does not work when pawn is cotrolled by AAIController?](https://forums.unrealengine.com/t/why-rvo-avoidance-does-not-work-when-pawn-is-cotrolled-by-aaicontroller/1818487)

<div class="topic-metadata">

**Author:** [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Replies:** 3\
**Last updated:** [April 28, 2024, 10:19pm UTC](https://forums.unrealengine.com/t/why-rvo-avoidance-does-not-work-when-pawn-is-cotrolled-by-aaicontroller/1818487 "2024-04-28T22:19:12Z")

</div>

When i use RVO Avoidance in a pawn controlled by an APlayerController it does work well… is impossible touch other pawn… But when i use RVO Avoidance in a pawn controlled by an AAIController it seem does not work… My NP…

---

## [behaviour tree cant pass custom task](https://forums.unrealengine.com/t/behaviour-tree-cant-pass-custom-task/1825338)

<div class="topic-metadata">

**Author:** [@Falcum4](https://forums.unrealengine.com/u/Falcum4)\
**Replies:** 2\
**Last updated:** [April 27, 2024, 10:03pm UTC](https://forums.unrealengine.com/t/behaviour-tree-cant-pass-custom-task/1825338 "2024-04-27T22:03:41Z")

</div>

When I make a custom task in my behavior tree, the tree just starts all over again the second it is played. I thought at first it was a fault in my attack animation, but then it turned out the same thing happened on focu…

---

## [My Car of MassAI Traffic do not go](https://forums.unrealengine.com/t/my-car-of-massai-traffic-do-not-go/1822604)

<div class="topic-metadata">

**Author:** [@Baetong20](https://forums.unrealengine.com/u/Baetong20)\
**Replies:** 0\
**Last updated:** [April 26, 2024, 10:34am UTC](https://forums.unrealengine.com/t/my-car-of-massai-traffic-do-not-go/1822604 "2024-04-26T10:34:58Z")

</div>

Mass Ai Traffic In the video above, we created an AI vehicle, but once it stops, it no longer moves forward, resulting in long-term traffic jams. I want a smooth transition~!!!

---

## [UE5 crashes when I run the simulation on my Vehicle template](https://forums.unrealengine.com/t/ue5-crashes-when-i-run-the-simulation-on-my-vehicle-template/1821680)

<div class="topic-metadata">

**Author:** [@Wusat12](https://forums.unrealengine.com/u/Wusat12)\
**Replies:** 0\
**Last updated:** [April 25, 2024, 8:38pm UTC](https://forums.unrealengine.com/t/ue5-crashes-when-i-run-the-simulation-on-my-vehicle-template/1821680 "2024-04-25T20:38:22Z")

</div>

I get this warning when I run my UE5 but my gpu drivers are up to date for my default gpu in laptop. I get this crash when I run the simulation. Is there any way to solve this problem as I don’t have a proper gpu and I n…

---

## [Behavior tree\>simple parallel \>two tasks is not enough.](https://forums.unrealengine.com/t/behavior-tree-simple-parallel-two-tasks-is-not-enough/1819681)

<div class="topic-metadata">

**Author:** [@baobao4435](https://forums.unrealengine.com/u/baobao4435)\
**Replies:** 0\
**Last updated:** [April 24, 2024, 7:02pm UTC](https://forums.unrealengine.com/t/behavior-tree-simple-parallel-two-tasks-is-not-enough/1819681 "2024-04-24T19:02:18Z")

</div>

hello,sorry for the title.I hope you forgive my broken English :joy: .I want to get more understanding of behavior tree. Now I’m meeting an issue,which is that I have a little aircraft AI.I hope it do 3 tasks at the sam…

---

## [Libtorch Integration Model::forward crashes](https://forums.unrealengine.com/t/libtorch-integration-model-forward-crashes/1569059)

<div class="topic-metadata">

**Author:** [@Roxxer](https://forums.unrealengine.com/u/Roxxer)\
**Replies:** 3\
**Last updated:** [April 24, 2024, 2:03pm UTC](https://forums.unrealengine.com/t/libtorch-integration-model-forward-crashes/1569059 "2024-04-24T14:03:49Z")

</div>

Libtorch Integration Model::forward crashes hi, i’ve been trying to integrate libtorch into my project… i’ve got it to compile & link properly using a self compiled libtorch using RelWithDebInfo to be able to debug it,…

---

## [Custom EQS Generator not working](https://forums.unrealengine.com/t/custom-eqs-generator-not-working/351625)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_d973a2dd](https://forums.unrealengine.com/u/anonymous_user_d973a2dd)\
**Replies:** 2\
**Last updated:** [April 23, 2024, 5:09pm UTC](https://forums.unrealengine.com/t/custom-eqs-generator-not-working/351625 "2024-04-23T17:09:06Z")

</div>

Ok, i’m trying to make my custom eqs generator, but it doesn’t work, so here’s my setting: in the scene there are 3 Target C (a child class of TargetPoint) actors in my custom query a use ContextC, a simple GetAllActor…

---

## [AI won't move in Static NavMesh](https://forums.unrealengine.com/t/ai-wont-move-in-static-navmesh/1814819)

<div class="topic-metadata">

**Author:** [@Shayne\_H](https://forums.unrealengine.com/u/Shayne_H)\
**Replies:** 0\
**Last updated:** [April 22, 2024, 2:03am UTC](https://forums.unrealengine.com/t/ai-wont-move-in-static-navmesh/1814819 "2024-04-22T02:03:38Z")

</div>

Hi Yall I have an AI controller that moves around a npc in my game. The movement works fine when the navmesh is set to dynamic, but it fails when the navmesh is static. This works: This Fails: I can seeThe AIMo…

---

## [Any way to return to the navigation mesh?](https://forums.unrealengine.com/t/any-way-to-return-to-the-navigation-mesh/1802063)

<div class="topic-metadata">

**Author:** [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Replies:** 6\
**Last updated:** [April 21, 2024, 12:53am UTC](https://forums.unrealengine.com/t/any-way-to-return-to-the-navigation-mesh/1802063 "2024-04-21T00:53:28Z")

</div>

Sometimes bots get out of the navigation mesh and then can no longer move. As for example in this case. Is there a way to detect that the bot has left the navigation mesh?.. And force the bot to return to the me…

---

## [AI beginner help](https://forums.unrealengine.com/t/ai-beginner-help/1807161)

<div class="topic-metadata">

**Author:** [@camerone95](https://forums.unrealengine.com/u/camerone95)\
**Replies:** 6\
**Last updated:** [April 20, 2024, 8:49pm UTC](https://forums.unrealengine.com/t/ai-beginner-help/1807161 "2024-04-20T20:49:42Z")

</div>

Hello, I am asking for help with an AI problem. I’m a beginner and after looking for several solutions I haven’t found anything concrete. Concretely I have my AI which as soon as it sees a player rushes at them and app…

---

## [Navmesh AI not moving](https://forums.unrealengine.com/t/navmesh-ai-not-moving/440580)

<div class="topic-metadata">

**Author:** [@Vokzole](https://forums.unrealengine.com/u/Vokzole)\
**Replies:** 8\
**Last updated:** [April 19, 2024, 3:11am UTC](https://forums.unrealengine.com/t/navmesh-ai-not-moving/440580 "2024-04-19T03:11:10Z")

</div>

Hello everyone, I am currently trying to create a Pacman project and am in the process of making the ghosts follow the player. In this case, I have already created a navmesh bounds volume encompassing the walkable paths…

---

## [AI Tries to Leave Mid-Chase?](https://forums.unrealengine.com/t/ai-tries-to-leave-mid-chase/1801967)

<div class="topic-metadata">

**Author:** [@ADHDeveloper](https://forums.unrealengine.com/u/ADHDeveloper)\
**Replies:** 2\
**Last updated:** [April 13, 2024, 2:44pm UTC](https://forums.unrealengine.com/t/ai-tries-to-leave-mid-chase/1801967 "2024-04-13T14:44:38Z")

</div>

My AI is set to roam when the player is not seen, but it is conflicting with the chase mechanic. I cannot figure out how to stop him from trying to turn away when chasing, and he even leaves when killing the …

---

## [Why NavLink Proxy does not work when one side is not in the floor?](https://forums.unrealengine.com/t/why-navlink-proxy-does-not-work-when-one-side-is-not-in-the-floor/1801816)

<div class="topic-metadata">

**Author:** [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Replies:** 1\
**Last updated:** [April 13, 2024, 1:11pm UTC](https://forums.unrealengine.com/t/why-navlink-proxy-does-not-work-when-one-side-is-not-in-the-floor/1801816 "2024-04-13T13:11:40Z")

</div>

I don’t know why this happens. When one side is on the floor it works perfectly. But if I move the side to a higher position it no longer works. The arc is not renderedand and is not detected by the Pathfinding system…

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

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