# AI

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

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

**Page:** 36

---

## [Controlled Pawn == None, but there is a controlled pawn](https://forums.unrealengine.com/t/controlled-pawn-none-but-there-is-a-controlled-pawn/297652)

<div class="topic-metadata">

**Author:** [@CharlieTheTall](https://forums.unrealengine.com/u/CharlieTheTall)\
**Replies:** 5\
**Last updated:** [March 7, 2023, 7:56pm UTC](https://forums.unrealengine.com/t/controlled-pawn-none-but-there-is-a-controlled-pawn/297652 "2023-03-07T19:56:11Z")

</div>

Hi, This is a weird one. I’m on 4.5.1. I just went through the Behavior Tree tutorial on the UE Documentation page. After I ran it, the AI worked perfectly. It was really cool, but then I stopped running I got a run…

---

## [How to know the perception actor is from which sense?](https://forums.unrealengine.com/t/how-to-know-the-perception-actor-is-from-which-sense/784715)

<div class="topic-metadata">

**Author:** [@xinyu\_nmm](https://forums.unrealengine.com/u/xinyu_nmm)\
**Replies:** 1\
**Last updated:** [March 6, 2023, 9:57am UTC](https://forums.unrealengine.com/t/how-to-know-the-perception-actor-is-from-which-sense/784715 "2023-03-06T09:57:19Z")

</div>

I can get the perception actor using On Target Perception Updated, but I want to know the actor is from which sense. How can I do?

---

## [How does this behavior tree logic work?](https://forums.unrealengine.com/t/how-does-this-behavior-tree-logic-work/784175)

<div class="topic-metadata">

**Author:** [@regularcat97](https://forums.unrealengine.com/u/regularcat97)\
**Replies:** 1\
**Last updated:** [March 5, 2023, 3:06pm UTC](https://forums.unrealengine.com/t/how-does-this-behavior-tree-logic-work/784175 "2023-03-05T15:06:32Z")

</div>

Hi folks. I might have some misunderstanding in behavior tree logic. Would be greatful if someone could explain me this example. This screenshot is from unreal docs of behavior trees: Behavior Tree Overview | Unreal …

---

## [Crowd Manager Avoidance Config](https://forums.unrealengine.com/t/crowd-manager-avoidance-config/315169)

<div class="topic-metadata">

**Author:** [@Justin.Dooley](https://forums.unrealengine.com/u/Justin.Dooley)\
**Replies:** 11\
**Last updated:** [March 4, 2023, 5:55am UTC](https://forums.unrealengine.com/t/crowd-manager-avoidance-config/315169 "2023-03-04T05:55:51Z")

</div>

I have been working with the detour avoidance system and have been trying to influence how strong the avoidance is so the units will completely veer off if they get really close. That’s when I noticed a section within th…

---

## [How to activate the npc position updater in OPENWORLD?](https://forums.unrealengine.com/t/how-to-activate-the-npc-position-updater-in-openworld/781253)

<div class="topic-metadata">

**Author:** [@raygatsu85](https://forums.unrealengine.com/u/raygatsu85)\
**Replies:** 4\
**Last updated:** [March 3, 2023, 11:28pm UTC](https://forums.unrealengine.com/t/how-to-activate-the-npc-position-updater-in-openworld/781253 "2023-03-03T23:28:58Z")

</div>

Hello. Both my AICOMPANION system and non-AI enemy npc and mounts do not update their position on the map as you move so they end up disappearing, this only happens on OPENWORLD-type maps because I tested it on the basi…

---

## [\[StateTree\] Hierarchical Data](https://forums.unrealengine.com/t/statetree-hierarchical-data/771175)

<div class="topic-metadata">

**Author:** [@bbcool4444](https://forums.unrealengine.com/u/bbcool4444)\
**Replies:** 1\
**Last updated:** [March 3, 2023, 5:27am UTC](https://forums.unrealengine.com/t/statetree-hierarchical-data/771175 "2023-03-03T05:27:05Z")

</div>

Good day. According the description of Overview of State Tree in Unreal Engine | Unreal Engine 5.1 Documentation Variables can “share” between" the nodes of a state, I want to gain a location where make the AI move to…

---

## [AI not moving in built](https://forums.unrealengine.com/t/ai-not-moving-in-built/782139)

<div class="topic-metadata">

**Author:** [@paper-kut](https://forums.unrealengine.com/u/paper-kut)\
**Replies:** 0\
**Last updated:** [March 2, 2023, 2:35pm UTC](https://forums.unrealengine.com/t/ai-not-moving-in-built/782139 "2023-03-02T14:35:49Z")

</div>

My AI is moving in the viewport; everything is working fine. And then when I do a build, only 1 of them moves, and the other 20 that are on the landscape are not moving, and they are getting Aborted fails. I am using Un…

---

## [AI navigation on moving actor](https://forums.unrealengine.com/t/ai-navigation-on-moving-actor/782021)

<div class="topic-metadata">

**Author:** [@Domesz009](https://forums.unrealengine.com/u/Domesz009)\
**Replies:** 0\
**Last updated:** [March 2, 2023, 12:00pm UTC](https://forums.unrealengine.com/t/ai-navigation-on-moving-actor/782021 "2023-03-02T12:00:55Z")

</div>

Hello, im relative new to this so bear with me Lets say i have a spaceship in my game and i want the ai to move in that, the ship itself moves but the things inside that define where the ai can step would be fixed, can …

---

## [How to make a character owned by an AI if he is AFK](https://forums.unrealengine.com/t/how-to-make-a-character-owned-by-an-ai-if-he-is-afk/781382)

<div class="topic-metadata">

**Author:** [@Vanhendrix](https://forums.unrealengine.com/u/Vanhendrix)\
**Replies:** 2\
**Last updated:** [March 2, 2023, 12:15am UTC](https://forums.unrealengine.com/t/how-to-make-a-character-owned-by-an-ai-if-he-is-afk/781382 "2023-03-02T00:15:11Z")

</div>

Hi, I’m pretty new to UE and I’m looking to see if it’s possible to implement the possibility that when the player is AFK after a certain amount of time, he is automatically possessed by an AI and moves on his own follow…

---

## [how would I make the A.I turn based on it's locomotion?](https://forums.unrealengine.com/t/how-would-i-make-the-a-i-turn-based-on-its-locomotion/781400)

<div class="topic-metadata">

**Author:** [@blank\_undb](https://forums.unrealengine.com/u/blank_undb)\
**Replies:** 0\
**Last updated:** [March 1, 2023, 5:42pm UTC](https://forums.unrealengine.com/t/how-would-i-make-the-a-i-turn-based-on-its-locomotion/781400 "2023-03-01T17:42:07Z")

</div>

No, I don’t mean smooth turning, I want it to not instantly turn into another direction at all but instead have it turn by walking to the left or the right smoothly

---

## [Decorator not aborting composite node as expected in Behavior Tree](https://forums.unrealengine.com/t/decorator-not-aborting-composite-node-as-expected-in-behavior-tree/780760)

<div class="topic-metadata">

**Author:** [@Sweatymoose2](https://forums.unrealengine.com/u/Sweatymoose2)\
**Replies:** 2\
**Last updated:** [March 1, 2023, 11:20am UTC](https://forums.unrealengine.com/t/decorator-not-aborting-composite-node-as-expected-in-behavior-tree/780760 "2023-03-01T11:20:43Z")

</div>

I’m encountering unexpected behavior trying to use decorators on my BehaviorTree. The Blackboard attached to my tree has one key: a boolean called ‘ShouldStop’. The task that it runs (BTT\_InterruptMePlz) just counts do…

---

## [AI Travel Distance Problem](https://forums.unrealengine.com/t/ai-travel-distance-problem/779772)

<div class="topic-metadata">

**Author:** [@raygatsu85](https://forums.unrealengine.com/u/raygatsu85)\
**Replies:** 0\
**Last updated:** [February 27, 2023, 3:39pm UTC](https://forums.unrealengine.com/t/ai-travel-distance-problem/779772 "2023-02-27T15:39:14Z")

</div>

Well, there I will explain and see if any good charitable soul would know and want to give me the answer haha: well the subject, as I said, I put the nav mesh on the entire map but it seems that the distance of the AI ​​…

---

## [Error: accessed none trying to read property. Don't know where the error comes from. Anyone help??](https://forums.unrealengine.com/t/error-accessed-none-trying-to-read-property-dont-know-where-the-error-comes-from-anyone-help/779202)

<div class="topic-metadata">

**Author:** [@jaiminator21](https://forums.unrealengine.com/u/jaiminator21)\
**Replies:** 1\
**Last updated:** [February 27, 2023, 6:56am UTC](https://forums.unrealengine.com/t/error-accessed-none-trying-to-read-property-dont-know-where-the-error-comes-from-anyone-help/779202 "2023-02-27T06:56:13Z")

</div>

Hello there, I am new to UE and I am trying to make an AI with the ALS Locomotion system and its giving me this error I have on the base weapon component, which is the blueprint I use to manage all the weapon things like…

---

## [Offset from Corners Distance](https://forums.unrealengine.com/t/offset-from-corners-distance/266810)

<div class="topic-metadata">

**Author:** [@ctc-watanabe](https://forums.unrealengine.com/u/ctc-watanabe)\
**Replies:** 2\
**Last updated:** [February 27, 2023, 5:44am UTC](https://forums.unrealengine.com/t/offset-from-corners-distance/266810 "2023-02-27T05:44:58Z")

</div>

In the “Navigation Testing Actor” settings, there is an “Offset from Corners Distance”. I want to use it for navigation, but I can’t find it in the navigation settings (RecastNavMesh-Default). How can I set it up?

---

## [Behavior Tree ignores Blackboard values](https://forums.unrealengine.com/t/behavior-tree-ignores-blackboard-values/779084)

<div class="topic-metadata">

**Author:** [@Anilarion](https://forums.unrealengine.com/u/Anilarion)\
**Replies:** 0\
**Last updated:** [February 26, 2023, 7:13pm UTC](https://forums.unrealengine.com/t/behavior-tree-ignores-blackboard-values/779084 "2023-02-26T19:13:37Z")

</div>

I have some problem with behavior tree. It just not works. For test i did empty tree with 1 selector and 1 bool As you can see, i have 2 options for selector: if (TestBoolKey == true) run first branch if (TestBoolK…

---

## [how can i make ai only attack player instead of every character it sees?](https://forums.unrealengine.com/t/how-can-i-make-ai-only-attack-player-instead-of-every-character-it-sees/778514)

<div class="topic-metadata">

**Author:** [@emir143](https://forums.unrealengine.com/u/emir143)\
**Replies:** 9\
**Last updated:** [February 25, 2023, 7:05pm UTC](https://forums.unrealengine.com/t/how-can-i-make-ai-only-attack-player-instead-of-every-character-it-sees/778514 "2023-02-25T19:05:12Z")

</div>

im working with behaviour tree and i have made a ‘attack’ task that should attack when it sees the player, but the thing is, i need to have 3 ai’s attacking when it sees player, problem is, it attacks the other ai’s and …

---

## [AI won't move when spawned by game](https://forums.unrealengine.com/t/ai-wont-move-when-spawned-by-game/396872)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_3ca36ca0](https://forums.unrealengine.com/u/anonymous_user_3ca36ca0)\
**Replies:** 6\
**Last updated:** [February 25, 2023, 3:24pm UTC](https://forums.unrealengine.com/t/ai-wont-move-when-spawned-by-game/396872 "2023-02-25T15:24:51Z")

</div>

Hi, I’ve been using these videos to adapt a 3rd person character template into an AI that attacks the player, and wanders when it can’t see the player. This all works fine when I place the AI into the ma…

---

## [Mass Entity errors in Unreal 5.1.1](https://forums.unrealengine.com/t/mass-entity-errors-in-unreal-5-1-1/777856)

<div class="topic-metadata">

**Author:** [@Wiresharkk](https://forums.unrealengine.com/u/Wiresharkk)\
**Replies:** 1\
**Last updated:** [February 24, 2023, 4:33pm UTC](https://forums.unrealengine.com/t/mass-entity-errors-in-unreal-5-1-1/777856 "2023-02-24T16:33:23Z")

</div>

I tried following this tutorial to implement Mass Entity in my game. However this fails with this error LogMass: Error: Trait(MassCrowdVisualizationTrait) has missing dependency: LogMass: Error: TransformFragm…

---

## [Constant value in Blackboard](https://forums.unrealengine.com/t/constant-value-in-blackboard/776921)

<div class="topic-metadata">

**Author:** [@probablydiary](https://forums.unrealengine.com/u/probablydiary)\
**Replies:** 0\
**Last updated:** [February 23, 2023, 9:02am UTC](https://forums.unrealengine.com/t/constant-value-in-blackboard/776921 "2023-02-23T09:02:31Z")

</div>

I require a const list with (at least) strings in it. The full situation is, that I will be making a lot of different BTs for different enemies, and each has a unique set of interactions it can perform. To be able to im…

---

## [What are the best ways to setup differents NavMeshBoundsVolumes or ModifiersVolumes for different lAs ?](https://forums.unrealengine.com/t/what-are-the-best-ways-to-setup-differents-navmeshboundsvolumes-or-modifiersvolumes-for-different-las/776342)

<div class="topic-metadata">

**Author:** [@hzFishy](https://forums.unrealengine.com/u/hzFishy)\
**Replies:** 4\
**Last updated:** [February 22, 2023, 7:40pm UTC](https://forums.unrealengine.com/t/what-are-the-best-ways-to-setup-differents-navmeshboundsvolumes-or-modifiersvolumes-for-different-las/776342 "2023-02-22T19:40:10Z")

</div>

Hello, as the title says, what is the most efficient way to assign zones (for example to patrol) to specifics actors/ characters (IA) I have? For a more clear example, lets imagine I have a ROOM with one door and a corr…

---

## [Is there any way to draw debug lines for trace test in eqs query?](https://forums.unrealengine.com/t/is-there-any-way-to-draw-debug-lines-for-trace-test-in-eqs-query/776245)

<div class="topic-metadata">

**Author:** [@mighty\_ganesh](https://forums.unrealengine.com/u/mighty_ganesh)\
**Replies:** 0\
**Last updated:** [February 22, 2023, 10:07am UTC](https://forums.unrealengine.com/t/is-there-any-way-to-draw-debug-lines-for-trace-test-in-eqs-query/776245 "2023-02-22T10:07:55Z")

</div>

It’s very hard to work with without seeing tha actual trace from the query and I can’t find any way to do this…

---

## [How can I see if the Player is a AI or a Actual player? (Using a blueprint)](https://forums.unrealengine.com/t/how-can-i-see-if-the-player-is-a-ai-or-a-actual-player-using-a-blueprint/774339)

<div class="topic-metadata">

**Author:** [@MasonX8881](https://forums.unrealengine.com/u/MasonX8881)\
**Replies:** 2\
**Last updated:** [February 22, 2023, 2:42am UTC](https://forums.unrealengine.com/t/how-can-i-see-if-the-player-is-a-ai-or-a-actual-player-using-a-blueprint/774339 "2023-02-22T02:42:12Z")

</div>

Using GetLyraPlayerController, how can I see if the Player is a AI or a Actual player? (Using a blueprint) Here is my code if it helps: Also, I am using the Lyra starter game, my blueprint is located in Plugins-\>Sho…

---

## [Why does AI Perception Not see directly under them?](https://forums.unrealengine.com/t/why-does-ai-perception-not-see-directly-under-them/775741)

<div class="topic-metadata">

**Author:** [@XiannessLilith](https://forums.unrealengine.com/u/XiannessLilith)\
**Replies:** 1\
**Last updated:** [February 22, 2023, 12:56am UTC](https://forums.unrealengine.com/t/why-does-ai-perception-not-see-directly-under-them/775741 "2023-02-22T00:56:32Z")

</div>

In the screenshot, I created a security camera that scans an area for hostiles, but I can only detect if someone is under the camera if I increase the degrees to 100 or so instead of 45. Does 45 degrees mean up/down as w…

---

## [What is Blackboard Key filtering used for?](https://forums.unrealengine.com/t/what-is-blackboard-key-filtering-used-for/774825)

<div class="topic-metadata">

**Author:** [@LordaxPL](https://forums.unrealengine.com/u/LordaxPL)\
**Replies:** 4\
**Last updated:** [February 21, 2023, 7:51am UTC](https://forums.unrealengine.com/t/what-is-blackboard-key-filtering-used-for/774825 "2023-02-21T07:51:59Z")

</div>

I’m a newbie to AI in Unreal Engine and I have a question regarding Blackboard Keys filtering. So, to cut to the chase, what is it used for? For example we can write: MyObjectKey.AddObjectFilter(this, GET\_MEMBER\_NAME\_CH…

---

## [statetree how to manual change the node status](https://forums.unrealengine.com/t/statetree-how-to-manual-change-the-node-status/775266)

<div class="topic-metadata">

**Author:** [@odolgtt](https://forums.unrealengine.com/u/odolgtt)\
**Replies:** 0\
**Last updated:** [February 21, 2023, 6:46am UTC](https://forums.unrealengine.com/t/statetree-how-to-manual-change-the-node-status/775266 "2023-02-21T06:46:17Z")

</div>

on CPP, when i enter EnterState ,return EStateTreeRunStatus::Running. i play a montage. and bind a delegate for montage blendout event with a function name \[MontageFinished\]. when montage play complete, will call …

---

## [Character slows down when approaching destination](https://forums.unrealengine.com/t/character-slows-down-when-approaching-destination/774297)

<div class="topic-metadata">

**Author:** [@BatYaggy](https://forums.unrealengine.com/u/BatYaggy)\
**Replies:** 0\
**Last updated:** [February 19, 2023, 11:14pm UTC](https://forums.unrealengine.com/t/character-slows-down-when-approaching-destination/774297 "2023-02-19T23:14:01Z")

</div>

I am using Simple Move To (basically from the topdown example project) but my character keeps slowing down when hes approaching the destination. How do I fix this?

---

## [Line trace by channel = death](https://forums.unrealengine.com/t/line-trace-by-channel-death/355196)

<div class="topic-metadata">

**Author:** [@Canti\_Prime](https://forums.unrealengine.com/u/Canti_Prime)\
**Replies:** 1\
**Last updated:** [February 17, 2023, 3:51am UTC](https://forums.unrealengine.com/t/line-trace-by-channel-death/355196 "2023-02-17T03:51:15Z")

</div>

hey i have a line trace by channel for the first person template gun and have got it to hit my ai however i need to have the ai die but i don’t know how. I have gotten the ai to blow up when inear to the character but i …

---

## [What's the difference between GetRandomReachablePointInRadius and GetRandomPointInNavigableRadius? In which case we should use which.](https://forums.unrealengine.com/t/whats-the-difference-between-getrandomreachablepointinradius-and-getrandompointinnavigableradius-in-which-case-we-should-use-which/426698)

<div class="topic-metadata">

**Author:** [@YuchenMei](https://forums.unrealengine.com/u/YuchenMei)\
**Replies:** 7\
**Last updated:** [February 16, 2023, 2:16pm UTC](https://forums.unrealengine.com/t/whats-the-difference-between-getrandomreachablepointinradius-and-getrandompointinnavigableradius-in-which-case-we-should-use-which/426698 "2023-02-16T14:16:20Z")

</div>

I think that this the difference: GetRandomReachablePointInRadius : Return a random valid point within a radius which that specific actor can reach GetRandomPointInNavigableRadius: Returns a random valid point within a…

---

## [Multiple UBTTaskNode/TickTask function is not executing simultaneously](https://forums.unrealengine.com/t/multiple-ubttasknode-ticktask-function-is-not-executing-simultaneously/768002)

<div class="topic-metadata">

**Author:** [@RakeshBMonkie](https://forums.unrealengine.com/u/RakeshBMonkie)\
**Replies:** 3\
**Last updated:** [February 15, 2023, 2:12am UTC](https://forums.unrealengine.com/t/multiple-ubttasknode-ticktask-function-is-not-executing-simultaneously/768002 "2023-02-15T02:12:50Z")

</div>

I Have created a UBTTaskNode derived class and used TickTask function to move the character every frame. Problem is when I Spawned that AI Character into the world it is moving smoothly but if I duplicate it only one ch…

---

## [AI Logic disabled when I am far/away](https://forums.unrealengine.com/t/ai-logic-disabled-when-i-am-far-away/770807)

<div class="topic-metadata">

**Author:** [@Blitzentaur](https://forums.unrealengine.com/u/Blitzentaur)\
**Replies:** 0\
**Last updated:** [February 14, 2023, 8:22pm UTC](https://forums.unrealengine.com/t/ai-logic-disabled-when-i-am-far-away/770807 "2023-02-14T20:22:28Z")

</div>

Hello! I am not sure how simple this is but I would like to ask how you guys handle having multiple actors/NPC’s in your games without it getting laggy? I am aware of the “Max Distance Draw” but I am guessing this does…

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

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