# AI

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

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

**Page:** 41

---

## [How to make character move to a random point in is patrol path?](https://forums.unrealengine.com/t/how-to-make-character-move-to-a-random-point-in-is-patrol-path/680800)

<div class="topic-metadata">

**Author:** [@Aethernum25](https://forums.unrealengine.com/u/Aethernum25)\
**Replies:** 6\
**Last updated:** [November 2, 2022, 12:50pm UTC](https://forums.unrealengine.com/t/how-to-make-character-move-to-a-random-point-in-is-patrol-path/680800 "2022-11-02T12:50:43Z")

</div>

Hello everyone. Been trying to create a more complex path finding for an NPC. Basically I have 3 points (Let’s call them A,B,C) and I want my NPC to move randomly between them. So far I could only make it go from A-\> B …

---

## [AI doesn't rotate to face the target](https://forums.unrealengine.com/t/ai-doesnt-rotate-to-face-the-target/350466)

<div class="topic-metadata">

**Author:** [@ClaudioPiccinni](https://forums.unrealengine.com/u/ClaudioPiccinni)\
**Replies:** 5\
**Last updated:** [November 2, 2022, 4:26am UTC](https://forums.unrealengine.com/t/ai-doesnt-rotate-to-face-the-target/350466 "2022-11-02T04:26:32Z")

</div>

Hi all, I’m trying to learn AI/BT. I implemented the \[official AI Behavior Trees quickstart guide\]\[1\], and it worked fine. Now I’m trying to modify it to make the AI only rotate to face the target, without moving, but t…

---

## [AI Doorways](https://forums.unrealengine.com/t/ai-doorways/678506)

<div class="topic-metadata">

**Author:** [@Zapking9224](https://forums.unrealengine.com/u/Zapking9224)\
**Replies:** 12\
**Last updated:** [November 1, 2022, 10:11pm UTC](https://forums.unrealengine.com/t/ai-doorways/678506 "2022-11-01T22:11:04Z")

</div>

Hi, so I have a room where these AI goblins roam around when you feed them candy, they run through these little sliding doors and chill in those rooms (and probably despawn if I decide to do that). But the problem I’m ru…

---

## [Blackboard decorator node not aborting on result or value change](https://forums.unrealengine.com/t/blackboard-decorator-node-not-aborting-on-result-or-value-change/406304)

<div class="topic-metadata">

**Author:** [@tanaka\_101](https://forums.unrealengine.com/u/tanaka_101)\
**Replies:** 7\
**Last updated:** [November 1, 2022, 2:27am UTC](https://forums.unrealengine.com/t/blackboard-decorator-node-not-aborting-on-result-or-value-change/406304 "2022-11-01T02:27:16Z")

</div>

Hi, I have a blackboard decorator node in my behavior tree that’s set to abort “Both”. It’s observing an Actor. When the observed Actor is destroyed in the level, the associated Blackboard Key immediately updates to No…

---

## [Only the first blackboard key gets set](https://forums.unrealengine.com/t/only-the-first-blackboard-key-gets-set/465793)

<div class="topic-metadata">

**Author:** [@nicksmaddog](https://forums.unrealengine.com/u/nicksmaddog)\
**Replies:** 5\
**Last updated:** [October 31, 2022, 3:55pm UTC](https://forums.unrealengine.com/t/only-the-first-blackboard-key-gets-set/465793 "2022-10-31T15:55:58Z")

</div>

I’m seeing a strange issue with my behavior tree and blackboard. I have two keys in my blackboard, and each get set in a different behavior tree task. However, only one key ever gets set to a value, and it’s always which…

---

## [Making an AI with same movement mechanics/Behaviour as the player ](https://forums.unrealengine.com/t/making-an-ai-with-same-movement-mechanics-behaviour-as-the-player/672024)

<div class="topic-metadata">

**Author:** [@Sandeep\_SKS](https://forums.unrealengine.com/u/Sandeep_SKS)\
**Replies:** 1\
**Last updated:** [October 31, 2022, 7:03am UTC](https://forums.unrealengine.com/t/making-an-ai-with-same-movement-mechanics-behaviour-as-the-player/672024 "2022-10-31T07:03:47Z")

</div>

Hello everyone , I’m learning unreal engine since last 2 months And I’ve been developing a game similar to the one you see in this video I’ve implemented wall jumping and sliding functions and the movement and stuff but…

---

## [怎么制作一个弓箭手敌人ai?](https://forums.unrealengine.com/t/ai/679595)

<div class="topic-metadata">

**Author:** [@Online\_Learner\_AJLeJ](https://forums.unrealengine.com/u/Online_Learner_AJLeJ)\
**Replies:** 0\
**Last updated:** [October 29, 2022, 2:30pm UTC](https://forums.unrealengine.com/t/ai/679595 "2022-10-29T14:30:33Z")

</div>

我最近在做一款第三人称动作游戏，处理ai时候，要做一个弓箭手的ai。可是我不知道该怎么实现远程攻击？该怎么制作？

---

## [Behavior Tree not allowing more than once instance to run at a time](https://forums.unrealengine.com/t/behavior-tree-not-allowing-more-than-once-instance-to-run-at-a-time/678133)

<div class="topic-metadata">

**Author:** [@Optimalcreation](https://forums.unrealengine.com/u/Optimalcreation)\
**Replies:** 0\
**Last updated:** [October 27, 2022, 10:48am UTC](https://forums.unrealengine.com/t/behavior-tree-not-allowing-more-than-once-instance-to-run-at-a-time/678133 "2022-10-27T10:48:07Z")

</div>

I have a custom TaskNode that defines how this AI enemy should move. When just one instance of the enemy is present in the world, it works perfectly fine. However, when more than one is present, each time the TaskNode d…

---

## [Controller not detecting controlled Pawn when spawned at Runtime](https://forums.unrealengine.com/t/controller-not-detecting-controlled-pawn-when-spawned-at-runtime/419014)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_7a7d7ffd](https://forums.unrealengine.com/u/anonymous_user_7a7d7ffd)\
**Replies:** 6\
**Last updated:** [October 26, 2022, 1:35pm UTC](https://forums.unrealengine.com/t/controller-not-detecting-controlled-pawn-when-spawned-at-runtime/419014 "2022-10-26T13:35:43Z")

</div>

For some reason when I spawn an AI with the node “SpawnAIFromClass”, it creates the actor fine, including the AI Controller, although it fails to recognise what class the spawned actor is. The above image is in my co…

---

## [Custom Navmesh on Sphere](https://forums.unrealengine.com/t/custom-navmesh-on-sphere/677163)

<div class="topic-metadata">

**Author:** [@tunnelsurfer](https://forums.unrealengine.com/u/tunnelsurfer)\
**Replies:** 2\
**Last updated:** [October 26, 2022, 3:58am UTC](https://forums.unrealengine.com/t/custom-navmesh-on-sphere/677163 "2022-10-26T03:58:55Z")

</div>

Hi fellow Unreal Programmers, I’m in the process of developing a custom navigation system that contours the surface of a sphere, how exactly should I do this? I’ve tried to add a custom FindPath implementation tho I’m …

---

## [Why Does My Nav Mesh Bounds Volume Disappear](https://forums.unrealengine.com/t/why-does-my-nav-mesh-bounds-volume-disappear/676618)

<div class="topic-metadata">

**Author:** [@NethakaS](https://forums.unrealengine.com/u/NethakaS)\
**Replies:** 4\
**Last updated:** [October 26, 2022, 2:36am UTC](https://forums.unrealengine.com/t/why-does-my-nav-mesh-bounds-volume-disappear/676618 "2022-10-26T02:36:12Z")

</div>

As you can see in this video my nav mesh bounds volume just disappear when i play / simulate. Have anyone got any idea on how to fix this ?

---

## [How to move a custom pawn via AI controller?](https://forums.unrealengine.com/t/how-to-move-a-custom-pawn-via-ai-controller/464899)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_b1fb29fb](https://forums.unrealengine.com/u/anonymous_user_b1fb29fb)\
**Replies:** 2\
**Last updated:** [October 25, 2022, 10:53pm UTC](https://forums.unrealengine.com/t/how-to-move-a-custom-pawn-via-ai-controller/464899 "2022-10-25T22:53:48Z")

</div>

Hello everyone, I’m new to Unreal engine. I have trouble finding a right tutorial for what I need to make, my assignment is to create a a Q-learning AI that has tile movement, the problem is that I can only find tutoria…

---

## [Make ai faster after player picking up keys](https://forums.unrealengine.com/t/make-ai-faster-after-player-picking-up-keys/676390)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_965487fe](https://forums.unrealengine.com/u/anonymous_user_965487fe)\
**Replies:** 2\
**Last updated:** [October 25, 2022, 7:52am UTC](https://forums.unrealengine.com/t/make-ai-faster-after-player-picking-up-keys/676390 "2022-10-25T07:52:28Z")

</div>

Hey so im really new to unreal engine and i wanted to make my ai move faster everytime the player picks up a key i also want a sound when player picks the key , like a scream to show that the monster is faster im curre…

---

## [Behavior tree MoveTo player and attack with cooldown?](https://forums.unrealengine.com/t/behavior-tree-moveto-player-and-attack-with-cooldown/675021)

<div class="topic-metadata">

**Author:** [@Krileon](https://forums.unrealengine.com/u/Krileon)\
**Replies:** 6\
**Last updated:** [October 24, 2022, 7:03pm UTC](https://forums.unrealengine.com/t/behavior-tree-moveto-player-and-attack-with-cooldown/675021 "2022-10-24T19:03:02Z")

</div>

I’m trying to use behavior tree to have my AI chase the player and once they’re within attack range stop chasing and attack them. I can’t seam to wrap my head around getting the selector checks right. Below is what I hav…

---

## [AI not facing player](https://forums.unrealengine.com/t/ai-not-facing-player/673442)

<div class="topic-metadata">

**Author:** [@Zapking9224](https://forums.unrealengine.com/u/Zapking9224)\
**Replies:** 8\
**Last updated:** [October 24, 2022, 7:07am UTC](https://forums.unrealengine.com/t/ai-not-facing-player/673442 "2022-10-24T07:07:23Z")

</div>

Hi, so I’m trying to have my AI character face the player when it hears them, keep looking at the player, and then wait a second or two to react and run away. I tried using rotate to face BB entry, but it just stands the…

---

## [How do I start at making a Paper2D AI that can chase the player, and attack? Preferably C++, but Blueprints is fine too.](https://forums.unrealengine.com/t/how-do-i-start-at-making-a-paper2d-ai-that-can-chase-the-player-and-attack-preferably-c-but-blueprints-is-fine-too/675362)

<div class="topic-metadata">

**Author:** [@Crolwick1](https://forums.unrealengine.com/u/Crolwick1)\
**Replies:** 0\
**Last updated:** [October 23, 2022, 1:26pm UTC](https://forums.unrealengine.com/t/how-do-i-start-at-making-a-paper2d-ai-that-can-chase-the-player-and-attack-preferably-c-but-blueprints-is-fine-too/675362 "2022-10-23T13:26:24Z")

</div>

I’m starting out using unreal engine in general, specifically ue5. I decided to make a Paper2D game, and was wondering how to make Paper2D pawns that can move and chase the player, then attack if within a certain range. …

---

## [Behavior tree profiling](https://forums.unrealengine.com/t/behavior-tree-profiling/674266)

<div class="topic-metadata">

**Author:** [@Gulith421](https://forums.unrealengine.com/u/Gulith421)\
**Replies:** 1\
**Last updated:** [October 21, 2022, 4:30pm UTC](https://forums.unrealengine.com/t/behavior-tree-profiling/674266 "2022-10-21T16:30:27Z")

</div>

Hi, is there a way to profile tasks & co? when i show either stat game or UObject or AI behavior tree, i just get general usage results. I just want to know what task take up all the BTComponent usage show with UObject f…

---

## [Moving pawn with AI Controller](https://forums.unrealengine.com/t/moving-pawn-with-ai-controller/253713)

<div class="topic-metadata">

**Author:** [@aerotsmith](https://forums.unrealengine.com/u/aerotsmith)\
**Replies:** 7\
**Last updated:** [October 21, 2022, 3:20pm UTC](https://forums.unrealengine.com/t/moving-pawn-with-ai-controller/253713 "2022-10-21T15:20:11Z")

</div>

I’ve got a pawn with a Floating Pawn Movement component. It has the default AI Controller, and I’m trying to get it to move using Simple Move To Location. It does not move, and I do have a nav mesh. If this won’t wor…

---

## [How to add new melee attacks to the AI in Lyra?](https://forums.unrealengine.com/t/how-to-add-new-melee-attacks-to-the-ai-in-lyra/673289)

<div class="topic-metadata">

**Author:** [@DORMINX](https://forums.unrealengine.com/u/DORMINX)\
**Replies:** 2\
**Last updated:** [October 21, 2022, 5:22am UTC](https://forums.unrealengine.com/t/how-to-add-new-melee-attacks-to-the-ai-in-lyra/673289 "2022-10-21T05:22:57Z")

</div>

Hello, I am trying to add new melee attacks to my AI in the lyra project. I currently have one attack working but I cannot seem to add a second attack. Here is my current Behavior tree for reference. I was thinking that…

---

## [Set when AI should start roaming](https://forums.unrealengine.com/t/set-when-ai-should-start-roaming/663495)

<div class="topic-metadata">

**Author:** [@ElegantLooter](https://forums.unrealengine.com/u/ElegantLooter)\
**Replies:** 28\
**Last updated:** [October 19, 2022, 9:35pm UTC](https://forums.unrealengine.com/t/set-when-ai-should-start-roaming/663495 "2022-10-19T21:35:30Z")

</div>

Hello, i am trying to set up my AI to start roaming after a precise event. I want the AI to spawn (it will be good also to use set visibility) and start roaming across my patrol path after i pick a key. I was thinking …

---

## [Boolean Being Set to True at wrong time](https://forums.unrealengine.com/t/boolean-being-set-to-true-at-wrong-time/670917)

<div class="topic-metadata">

**Author:** [@Zapking9224](https://forums.unrealengine.com/u/Zapking9224)\
**Replies:** 7\
**Last updated:** [October 19, 2022, 9:23pm UTC](https://forums.unrealengine.com/t/boolean-being-set-to-true-at-wrong-time/670917 "2022-10-19T21:23:19Z")

</div>

Hi, so I’m trying to create a little AI system where when the AI goblin sees the player, it runs away and hides. But for some reason, the boolean that I have that determines if the goblin sees the player is being ticked …

---

## [Why Run EQS always fails with this test?](https://forums.unrealengine.com/t/why-run-eqs-always-fails-with-this-test/671773)

<div class="topic-metadata">

**Author:** [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Replies:** 7\
**Last updated:** [October 18, 2022, 9:09pm UTC](https://forums.unrealengine.com/t/why-run-eqs-always-fails-with-this-test/671773 "2022-10-18T21:09:39Z")

</div>

I have made this query. When I do the test everything seems to work fine. I get a lot of points around the pawns. However when I run the task it always fails and doesn’t produce any output. Does anyone know w…

---

## [Nav Mesh does not save](https://forums.unrealengine.com/t/nav-mesh-does-not-save/672132)

<div class="topic-metadata">

**Author:** [@PixelIndieDev](https://forums.unrealengine.com/u/PixelIndieDev)\
**Replies:** 0\
**Last updated:** [October 18, 2022, 5:17pm UTC](https://forums.unrealengine.com/t/nav-mesh-does-not-save/672132 "2022-10-18T17:17:57Z")

</div>

All of the sudden, my nav mesh won’t save to the map file. It used to work, but then I toggled ‘Do Fully Async Nav Data Gathering’ on. After I did that everything fell apart. The AI would not move in the packaged build, …

---

## [AI EQS query - Debug sh9ws no query](https://forums.unrealengine.com/t/ai-eqs-query-debug-sh9ws-no-query/664603)

<div class="topic-metadata">

**Author:** [@BO-DACIOUS](https://forums.unrealengine.com/u/BO-DACIOUS)\
**Replies:** 15\
**Last updated:** [October 17, 2022, 7:21pm UTC](https://forums.unrealengine.com/t/ai-eqs-query-debug-sh9ws-no-query/664603 "2022-10-17T19:21:22Z")

</div>

Hello. Im following ryan laleys shooter AI zeries - on video 4. I setup the eqs query just like him. When he plays and hits the debug button, under eqs ut shows his query running. Its just a test query for now. When i do…

---

## [How do I check if a boolean blackboard key is true or false to run a certain branch in the behavior tree?](https://forums.unrealengine.com/t/how-do-i-check-if-a-boolean-blackboard-key-is-true-or-false-to-run-a-certain-branch-in-the-behavior-tree/670313)

<div class="topic-metadata">

**Author:** [@Zapking9224](https://forums.unrealengine.com/u/Zapking9224)\
**Replies:** 3\
**Last updated:** [October 16, 2022, 10:29pm UTC](https://forums.unrealengine.com/t/how-do-i-check-if-a-boolean-blackboard-key-is-true-or-false-to-run-a-certain-branch-in-the-behavior-tree/670313 "2022-10-16T22:29:45Z")

</div>

How do I use a boolean blackboard key to determine which branch to run? In my case, I have a goblin that runs when it sees the player. The condition that needs to be made to decide where the goblin runs is whether or not…

---

## [Selector won't Move to the next Task. Set Focus won't focus on the actor](https://forums.unrealengine.com/t/selector-wont-move-to-the-next-task-set-focus-wont-focus-on-the-actor/670773)

<div class="topic-metadata">

**Author:** [@askariamir432](https://forums.unrealengine.com/u/askariamir432)\
**Replies:** 1\
**Last updated:** [October 16, 2022, 10:28pm UTC](https://forums.unrealengine.com/t/selector-wont-move-to-the-next-task-set-focus-wont-focus-on-the-actor/670773 "2022-10-16T22:28:00Z")

</div>

After I Set the Blackboard Key to Last Known Player Location (So it would go there) in Update Player Location, Everything broke. It won’t go to the Patrol Sequence After it Investigate and it will no Longer Focus on a…

---

## [How to execute a task once in a branch with services at tick? (behavior tree)](https://forums.unrealengine.com/t/how-to-execute-a-task-once-in-a-branch-with-services-at-tick-behavior-tree/663873)

<div class="topic-metadata">

**Author:** [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Replies:** 22\
**Last updated:** [October 16, 2022, 5:19pm UTC](https://forums.unrealengine.com/t/how-to-execute-a-task-once-in-a-branch-with-services-at-tick-behavior-tree/663873 "2022-10-16T17:19:51Z")

</div>

I want the task to run only once as long as the decorator condition is true. However the task restarts every 0.5 seconds since the service checks variables every half second. I’ve tried many things… -Using “Event Rece…

---

## [StateTree](https://forums.unrealengine.com/t/statetree/670587)

<div class="topic-metadata">

**Author:** [@Ghost\_chen](https://forums.unrealengine.com/u/Ghost_chen)\
**Replies:** 0\
**Last updated:** [October 16, 2022, 2:11pm UTC](https://forums.unrealengine.com/t/statetree/670587 "2022-10-16T14:11:23Z")

</div>

Bug here! StateStee Editor::Float Compare can only bind Bool or Integer,but can’t bind float

---

## [How i add multiple ennemies who behave normaly with pawn sensing](https://forums.unrealengine.com/t/how-i-add-multiple-ennemies-who-behave-normaly-with-pawn-sensing/456664)

<div class="topic-metadata">

**Author:** [@ArthurDunesme](https://forums.unrealengine.com/u/ArthurDunesme)\
**Replies:** 2\
**Last updated:** [October 15, 2022, 11:59pm UTC](https://forums.unrealengine.com/t/how-i-add-multiple-ennemies-who-behave-normaly-with-pawn-sensing/456664 "2022-10-15T23:59:51Z")

</div>

i made an simple enemy using pawn sensing to locate the player and just turn to face him. it worked normally with only one ennemy on screen but with two, the ennemy didn’t wanted to decide in witch direction they have to…

---

## [AI works, unless level streamed](https://forums.unrealengine.com/t/ai-works-unless-level-streamed/325571)

<div class="topic-metadata">

**Author:** [@Paladinsl](https://forums.unrealengine.com/u/Paladinsl)\
**Replies:** 12\
**Last updated:** [October 14, 2022, 7:33am UTC](https://forums.unrealengine.com/t/ai-works-unless-level-streamed/325571 "2022-10-14T07:33:19Z")

</div>

I have an AI setup in my level that engages some randomly spawning targets, when I load the map directly in the editor and play, it runs perfectly, but when it’s loaded during the course of the level it does not, it just…

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

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