# AI

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

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

**Page:** 27

---

## [What is the best way to work out if a location in an AI's nav mesh is reachable by the AI?](https://forums.unrealengine.com/t/what-is-the-best-way-to-work-out-if-a-location-in-an-ais-nav-mesh-is-reachable-by-the-ai/1463020)

<div class="topic-metadata">

**Author:** [@weedlordgaben](https://forums.unrealengine.com/u/weedlordgaben)\
**Replies:** 0\
**Last updated:** [December 3, 2023, 11:37pm UTC](https://forums.unrealengine.com/t/what-is-the-best-way-to-work-out-if-a-location-in-an-ais-nav-mesh-is-reachable-by-the-ai/1463020 "2023-12-03T23:37:53Z")

</div>

Hi all. I’m trying to create a system for my AI to search for a hiding player. The player will be able to hide under objects, furniture, etc. For the system that I have in mind, I need the AI to be able to detect when th…

---

## [make actor turn with my joystick](https://forums.unrealengine.com/t/make-actor-turn-with-my-joystick/1433406)

<div class="topic-metadata">

**Author:** [@Xernesser](https://forums.unrealengine.com/u/Xernesser)\
**Replies:** 0\
**Last updated:** [November 29, 2023, 7:27pm UTC](https://forums.unrealengine.com/t/make-actor-turn-with-my-joystick/1433406 "2023-11-29T19:27:52Z")

</div>

Hi, I’ve figured out how to make my character look at the mouse, but I’d like to make it work with the joystick on my controllers as well (make him look in the direction the joystick is tilted) (The code i use for make …

---

## [How to make an NPC perceive the player character's perception?](https://forums.unrealengine.com/t/how-to-make-an-npc-perceive-the-player-characters-perception/1427033)

<div class="topic-metadata">

**Author:** [@fartificial](https://forums.unrealengine.com/u/fartificial)\
**Replies:** 1\
**Last updated:** [November 28, 2023, 7:57pm UTC](https://forums.unrealengine.com/t/how-to-make-an-npc-perceive-the-player-characters-perception/1427033 "2023-11-28T19:57:36Z")

</div>

I’m learning how to make AI enemies but I can’t figure this out: I want to make an NPC that just repeats an idle animation until it has perceived that the player character has perceived it. I want this NPC to not move o…

---

## [Accessing Blackboard in EQS](https://forums.unrealengine.com/t/accessing-blackboard-in-eqs/546849)

<div class="topic-metadata">

**Author:** [@Emil\_J](https://forums.unrealengine.com/u/Emil_J)\
**Replies:** 2\
**Last updated:** [November 28, 2023, 5:10am UTC](https://forums.unrealengine.com/t/accessing-blackboard-in-eqs/546849 "2023-11-28T05:10:47Z")

</div>

I’ve been following Ryan Laleys tutorial about cover locations (Unreal Engine 4 Tutorial - Shooter AI Pt.6 - Finding Cover - YouTube) but I need to do a change for it to work with my project. Instead of using the Player…

---

## [Why does my behavior tree stops firing?](https://forums.unrealengine.com/t/why-does-my-behavior-tree-stops-firing/1418299)

<div class="topic-metadata">

**Author:** [@fael097](https://forums.unrealengine.com/u/fael097)\
**Replies:** 5\
**Last updated:** [November 27, 2023, 6:07pm UTC](https://forums.unrealengine.com/t/why-does-my-behavior-tree-stops-firing/1418299 "2023-11-27T18:07:54Z")

</div>

I’m trying to set up a simple BT logic: -when the enemy doesn’t know or doesn’t remember the player (set by the RememberPlayer bool), it should move to a random location. -if the enemy has seen the player, so he does r…

---

## [如何在UE5中运用图像识别算法](https://forums.unrealengine.com/t/ue5/1426016)

<div class="topic-metadata">

**Author:** [@ok\_beng](https://forums.unrealengine.com/u/ok_beng)\
**Replies:** 0\
**Last updated:** [November 27, 2023, 3:30pm UTC](https://forums.unrealengine.com/t/ue5/1426016 "2023-11-27T15:30:20Z")

</div>

已经训练好了pytorch的pt模型 怎么加载到UE中，并且运用

---

## [Some Pathfinding Problems \[Tips and Soluces\] \[4.27\]](https://forums.unrealengine.com/t/some-pathfinding-problems-tips-and-soluces-4-27/1425883)

<div class="topic-metadata">

**Author:** [@kev16j](https://forums.unrealengine.com/u/kev16j)\
**Replies:** 0\
**Last updated:** [November 27, 2023, 2:35pm UTC](https://forums.unrealengine.com/t/some-pathfinding-problems-tips-and-soluces-4-27/1425883 "2023-11-27T14:35:54Z")

</div>

After meeting lot of problems with Pathfinding and multiple Agent, i propose to give you tips and soluces that can maybe be useful ! Problems : -If your AI can’t move to location : Make sure the start and destination …

---

## [The enemy artificial intelligence character is not approaching](https://forums.unrealengine.com/t/the-enemy-artificial-intelligence-character-is-not-approaching/1421427)

<div class="topic-metadata">

**Author:** [@AiiiiiiiiiiiiiS](https://forums.unrealengine.com/u/AiiiiiiiiiiiiiS)\
**Replies:** 7\
**Last updated:** [November 26, 2023, 5:01pm UTC](https://forums.unrealengine.com/t/the-enemy-artificial-intelligence-character-is-not-approaching/1421427 "2023-11-26T17:01:48Z")

</div>

The problem is that when the enemy character is chasing me, I would like him to get close to me almost face-to-face while running, but it feels like something is hindering him. However, if I stand still, he can come up t…

---

## [BT chase player again only when at certain distance?](https://forums.unrealengine.com/t/bt-chase-player-again-only-when-at-certain-distance/1417982)

<div class="topic-metadata">

**Author:** [@fael097](https://forums.unrealengine.com/u/fael097)\
**Replies:** 1\
**Last updated:** [November 24, 2023, 8:58pm UTC](https://forums.unrealengine.com/t/bt-chase-player-again-only-when-at-certain-distance/1417982 "2023-11-24T20:58:43Z")

</div>

I’m making the AI chase the player with a custom task in a BT, to an acceptance radius of 500, but I only wanted the AI to try chasing the player again if the distance between them becomes greater than say 750. How can …

---

## [My blueprint to get an AI to roam is not working and i'm asking what is going wrong?](https://forums.unrealengine.com/t/my-blueprint-to-get-an-ai-to-roam-is-not-working-and-im-asking-what-is-going-wrong/1411944)

<div class="topic-metadata">

**Author:** [@Winter\_Crescent](https://forums.unrealengine.com/u/Winter_Crescent)\
**Replies:** 3\
**Last updated:** [November 23, 2023, 10:24am UTC](https://forums.unrealengine.com/t/my-blueprint-to-get-an-ai-to-roam-is-not-working-and-im-asking-what-is-going-wrong/1411944 "2023-11-23T10:24:52Z")

</div>

I have tinkered researched ectetera to try and get this to work but no dice so i have turned to the wise sages of the Dev Forums

---

## [Friendly / Non friendly creature Ai Workflow Questions](https://forums.unrealengine.com/t/friendly-non-friendly-creature-ai-workflow-questions/145565)

<div class="topic-metadata">

**Author:** [@mylonious](https://forums.unrealengine.com/u/mylonious)\
**Replies:** 1\
**Last updated:** [June 11, 2020, 9:41am UTC](https://forums.unrealengine.com/t/friendly-non-friendly-creature-ai-workflow-questions/145565 "2020-06-11T09:41:02Z")

</div>

Hey, Im having a hard time Wrapping my head around communicating information from Instances of Enemies to Behavior trees. and im also having a hard time figuring out an efficient system for making a bunch of different e…

---

## [AI moves to different Z-axis position than set by GetRandomPointInNavigableRadius](https://forums.unrealengine.com/t/ai-moves-to-different-z-axis-position-than-set-by-getrandompointinnavigableradius/655037)

<div class="topic-metadata">

**Author:** [@FaceW.TearsOfJoy](https://forums.unrealengine.com/u/FaceW.TearsOfJoy)\
**Replies:** 2\
**Last updated:** [November 21, 2023, 10:36pm UTC](https://forums.unrealengine.com/t/ai-moves-to-different-z-axis-position-than-set-by-getrandompointinnavigableradius/655037 "2023-11-21T22:36:18Z")

</div>

On a picture below, I use BTTask to find a random point of interest actor inside level, the lamp on bottom left is one of those actors, where the capsule collision is used as an actor to which AI will be moving to. Afte…

---

## [Why is the RecastNavMesh object not created for the Nav-Agent?](https://forums.unrealengine.com/t/why-is-the-recastnavmesh-object-not-created-for-the-nav-agent/1324657)

<div class="topic-metadata">

**Author:** [@Micronik\_PS](https://forums.unrealengine.com/u/Micronik_PS)\
**Replies:** 1\
**Last updated:** [November 22, 2023, 6:41am UTC](https://forums.unrealengine.com/t/why-is-the-recastnavmesh-object-not-created-for-the-nav-agent/1324657 "2023-11-22T06:41:18Z")

</div>

I work on Unreal Engine 5.2.1. I have a completely empty map. In my project, I want to announce 2 different, by color, Nav-Agents: FirstAgent (Color : Blue) SecondAgent (Color : Yellow) The only settings I cha…

---

## [Moving a Streaming Level's static nav mesh](https://forums.unrealengine.com/t/moving-a-streaming-levels-static-nav-mesh/354329)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_cc989825](https://forums.unrealengine.com/u/anonymous_user_cc989825)\
**Replies:** 1\
**Last updated:** [November 21, 2023, 9:14pm UTC](https://forums.unrealengine.com/t/moving-a-streaming-levels-static-nav-mesh/354329 "2023-11-21T21:14:21Z")

</div>

I want to transform an instance of a sublevel including its nav mesh. Why not use dynamic/runtime generation and move the nav mesh around? I’m assuming it is too slow. Nav mesh generation is not a cheap operation. It …

---

## [Why use a custom AI Controller?](https://forums.unrealengine.com/t/why-use-a-custom-ai-controller/512228)

<div class="topic-metadata">

**Author:** [@Astaraa](https://forums.unrealengine.com/u/Astaraa)\
**Replies:** 3\
**Last updated:** [November 21, 2023, 5:46pm UTC](https://forums.unrealengine.com/t/why-use-a-custom-ai-controller/512228 "2023-11-21T17:46:06Z")

</div>

Whenever I come back to AI I always wonder why use a custom AI Controller? Tutorials always do. We have Character BP, Behavior Trees, and AI Controller. I could do everything in a Character BP. This is appealing because…

---

## [Visualize a EQS Query (real-time)](https://forums.unrealengine.com/t/visualize-a-eqs-query-real-time/310774)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_92200967](https://forums.unrealengine.com/u/anonymous_user_92200967)\
**Replies:** 9\
**Last updated:** [November 21, 2023, 2:26pm UTC](https://forums.unrealengine.com/t/visualize-a-eqs-query-real-time/310774 "2023-11-21T14:26:39Z")

</div>

I’m trying to visualize my EQS queries in real time as the game runs. I would love to be able to see the query in the way the EQSTestingPawn shows it while I’m in editor mode. This would allow me to see the values change…

---

## [How to implement interrupts in a behavior tree](https://forums.unrealengine.com/t/how-to-implement-interrupts-in-a-behavior-tree/302331)

<div class="topic-metadata">

**Author:** [@Asher\_S\_Einhorn](https://forums.unrealengine.com/u/Asher_S_Einhorn)\
**Replies:** 8\
**Last updated:** [November 21, 2023, 1:33pm UTC](https://forums.unrealengine.com/t/how-to-implement-interrupts-in-a-behavior-tree/302331 "2023-11-21T13:33:55Z")

</div>

I have a problem. In the picture below the Service (1.) looks to see if the player has invalidated the cover the agent is currently in. It does this fine using a tick. This flips the state that the decorators at 3. use t…

---

## [How to make jump fatigue in blueprint?](https://forums.unrealengine.com/t/how-to-make-jump-fatigue-in-blueprint/1403816)

<div class="topic-metadata">

**Author:** [@KTML\_Films](https://forums.unrealengine.com/u/KTML_Films)\
**Replies:** 1\
**Last updated:** [November 19, 2023, 4:07pm UTC](https://forums.unrealengine.com/t/how-to-make-jump-fatigue-in-blueprint/1403816 "2023-11-19T16:07:12Z")

</div>

Im trying to make a jump fatigue function where the player jumps as soon as they land from a previous jump they’re jump Zvelocity gets weaker the more they jump too quick so a cooldown of like a second would reset the fa…

---

## [Accessed none trying to read property get blackboard](https://forums.unrealengine.com/t/accessed-none-trying-to-read-property-get-blackboard/478805)

<div class="topic-metadata">

**Author:** [@zenardgaming](https://forums.unrealengine.com/u/zenardgaming)\
**Replies:** 2\
**Last updated:** [November 19, 2023, 3:15pm UTC](https://forums.unrealengine.com/t/accessed-none-trying-to-read-property-get-blackboard/478805 "2023-11-19T15:15:58Z")

</div>

I need help figuring out why my “get blackboard” wont work

---

## [AI Projectile Homing On To Player?](https://forums.unrealengine.com/t/ai-projectile-homing-on-to-player/1398997)

<div class="topic-metadata">

**Author:** [@samhall1995](https://forums.unrealengine.com/u/samhall1995)\
**Replies:** 1\
**Last updated:** [November 19, 2023, 11:24am UTC](https://forums.unrealengine.com/t/ai-projectile-homing-on-to-player/1398997 "2023-11-19T11:24:07Z")

</div>

Hi everyone, For a few days now I have been trying to make my AI’s projectile home on to the player when shot. All the tutorials online show how to make the players projectile home onto an actor in the scene. Which is g…

---

## [Paper 2d AI character attempts to walk in restricted Y axis. Is this a problem of the way I use AI MoveTo?](https://forums.unrealengine.com/t/paper-2d-ai-character-attempts-to-walk-in-restricted-y-axis-is-this-a-problem-of-the-way-i-use-ai-moveto/412711)

<div class="topic-metadata">

**Author:** [@lionclopeg](https://forums.unrealengine.com/u/lionclopeg)\
**Replies:** 10\
**Last updated:** [November 19, 2023, 6:01am UTC](https://forums.unrealengine.com/t/paper-2d-ai-character-attempts-to-walk-in-restricted-y-axis-is-this-a-problem-of-the-way-i-use-ai-moveto/412711 "2023-11-19T06:01:18Z")

</div>

Hello fellow Unreal Developers! I’ve been developing a Paper2D platformer and recently have found a very interesting behavior that I wasn’t able to change. I wonder if any of you would have an idea of why this is happen…

---

## [Since 5.3 State Trees are not working as expected anymore](https://forums.unrealengine.com/t/since-5-3-state-trees-are-not-working-as-expected-anymore/1334380)

<div class="topic-metadata">

**Author:** [@MajekPL](https://forums.unrealengine.com/u/MajekPL)\
**Replies:** 1\
**Last updated:** [November 17, 2023, 10:08pm UTC](https://forums.unrealengine.com/t/since-5-3-state-trees-are-not-working-as-expected-anymore/1334380 "2023-11-17T22:08:01Z")

</div>

Hey! Since 5.3 I simply don’t understand State Trees anymore. For some reason in this implementation the childs are looping but the parent is only executed once. This leads to the bots stallling somehow as their move ta…

---

## [Switch behavior trees while active](https://forums.unrealengine.com/t/switch-behavior-trees-while-active/440327)

<div class="topic-metadata">

**Author:** [@TuXsOrDs](https://forums.unrealengine.com/u/TuXsOrDs)\
**Replies:** 5\
**Last updated:** [November 16, 2023, 10:33pm UTC](https://forums.unrealengine.com/t/switch-behavior-trees-while-active/440327 "2023-11-16T22:33:29Z")

</div>

I have my AI run one behavior tree by default and that behavior tree contains everything to act as a normal citizen. This behavior tree also checks to see at any time to see if the NPC has changed to a “Guard” or a “Inf…

---

## [Enemy AI will approach but refuses to attack. Help?](https://forums.unrealengine.com/t/enemy-ai-will-approach-but-refuses-to-attack-help/1393292)

<div class="topic-metadata">

**Author:** [@TimSweeneysMutt](https://forums.unrealengine.com/u/TimSweeneysMutt)\
**Replies:** 14\
**Last updated:** [November 16, 2023, 4:54am UTC](https://forums.unrealengine.com/t/enemy-ai-will-approach-but-refuses-to-attack-help/1393292 "2023-11-16T04:54:53Z")

</div>

Title says it all. I followed “GorkaGames” tutorial on building simple enemy AI (and I watched a few others which followed his exact methodology) and set things up 1:1. Everything works EXCEPT the attack animation. The A…

---

## [How to get EQS to return an actor instead of a location?](https://forums.unrealengine.com/t/how-to-get-eqs-to-return-an-actor-instead-of-a-location/650361)

<div class="topic-metadata">

**Author:** [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Replies:** 4\
**Last updated:** [November 15, 2023, 7:11pm UTC](https://forums.unrealengine.com/t/how-to-get-eqs-to-return-an-actor-instead-of-a-location/650361 "2023-11-15T19:11:01Z")

</div>

I have a very simple query. I just want to know if there is a nearby visible cube. It seems to work fine in tests. But I need it to return a reference to the actor instead of the location of it because I need to d…

---

## [EQS generate item on Circle](https://forums.unrealengine.com/t/eqs-generate-item-on-circle/316350)

<div class="topic-metadata">

**Author:** [@Skyrius\_1](https://forums.unrealengine.com/u/Skyrius_1)\
**Replies:** 2\
**Last updated:** [November 15, 2023, 3:55am UTC](https://forums.unrealengine.com/t/eqs-generate-item-on-circle/316350 "2023-11-15T03:55:56Z")

</div>

So, I’m not sure if this is just a graphical problem (I know the EQS system is still experimental) with the way the pawn shows all of your points, but for the EQS generate item on circle option, the circle seems to be cu…

---

## [How to make spawned character chase player?](https://forums.unrealengine.com/t/how-to-make-spawned-character-chase-player/1388163)

<div class="topic-metadata">

**Author:** [@Texn0krat](https://forums.unrealengine.com/u/Texn0krat)\
**Replies:** 6\
**Last updated:** [November 14, 2023, 6:10pm UTC](https://forums.unrealengine.com/t/how-to-make-spawned-character-chase-player/1388163 "2023-11-14T18:10:07Z")

</div>

Hello. I’m trying to make npc which can chase player. I created npc blueprint with perception and when I’m just drag it to scene it chase the player without problems: But when I’m trying to spawn it in other bp with …

---

## [Spawn Actor and AIController problem](https://forums.unrealengine.com/t/spawn-actor-and-aicontroller-problem/476778)

<div class="topic-metadata">

**Author:** [@Cafo95](https://forums.unrealengine.com/u/Cafo95)\
**Replies:** 10\
**Last updated:** [November 14, 2023, 5:53pm UTC](https://forums.unrealengine.com/t/spawn-actor-and-aicontroller-problem/476778 "2023-11-14T17:53:20Z")

</div>

Hi guys, I’m literally losing my mind, hope someone can help me understand what I’m doing wrong. So, in my level script I spawn an actor: AEnemy Enemy = Cast\<AEnemy\>(GetWorld()-\>SpawnActor\<AEnemy\>(EnemyBlueprint, Enemy…

---

## [Behavior tree and EQS: making an AI goes to the nearest available counter on a terminal](https://forums.unrealengine.com/t/behavior-tree-and-eqs-making-an-ai-goes-to-the-nearest-available-counter-on-a-terminal/1389894)

<div class="topic-metadata">

**Author:** [@alejoprieto](https://forums.unrealengine.com/u/alejoprieto)\
**Replies:** 0\
**Last updated:** [November 14, 2023, 2:44pm UTC](https://forums.unrealengine.com/t/behavior-tree-and-eqs-making-an-ai-goes-to-the-nearest-available-counter-on-a-terminal/1389894 "2023-11-14T14:44:50Z")

</div>

Hi everybody. I’m working on a simulation of passengers flow into a terminal, but I’m stuck. It’s based on AI, Behavior Trees and EQS. I’m using this task to find the closest counter: Then, this to move to there: …

---

## [Can't get NPC to move, fix?](https://forums.unrealengine.com/t/cant-get-npc-to-move-fix/1384843)

<div class="topic-metadata">

**Author:** [@CharussoO](https://forums.unrealengine.com/u/CharussoO)\
**Replies:** 3\
**Last updated:** [November 12, 2023, 7:33pm UTC](https://forums.unrealengine.com/t/cant-get-npc-to-move-fix/1384843 "2023-11-12T19:33:11Z")

</div>

Hi Everyone, I’m fairly new to Unreal engine but I made some progress in the last week. Now I’m stuck with NPC movement. My plan was to get the NPC to move to a set point, then wait for player interaction then move to a…

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

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