# AI

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

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

**Page:** 89

---

## [Exception on first invocation of SweepMultiByProfile](https://forums.unrealengine.com/t/exception-on-first-invocation-of-sweepmultibyprofile/416192)

<div class="topic-metadata">

**Author:** [@GlassBeaver](https://forums.unrealengine.com/u/GlassBeaver)\
**Replies:** 7\
**Last updated:** [October 8, 2018, 5:32pm UTC](https://forums.unrealengine.com/t/exception-on-first-invocation-of-sweepmultibyprofile/416192 "2018-10-08T17:32:17Z")

</div>

I’m using SweepMultiByProfile in a UBTService and I always get an exception the very first time it is executed when playing the game. I use similar sweeps in other classes without an issue. void UAI\_PickupScanner::TickN…

---

## [味方aiが上手く動かない](https://forums.unrealengine.com/t/ai/435257)

<div class="topic-metadata">

**Author:** [@R01525](https://forums.unrealengine.com/u/R01525)\
**Replies:** 6\
**Last updated:** [October 8, 2018, 1:25pm UTC](https://forums.unrealengine.com/t/ai/435257 "2018-10-08T13:25:43Z")

</div>

初心者なため初歩的な質問ですみません。 Third Personテンプレートから改造してアクションゲームを作っており、その敵キャラと味方キャラのAIを作っている最中なのですが、味方キャラのAIが上手く動きません… こちらの記事が一番やりたいことに近くて参考にしていまして、敵を発見するところまで進めたのですが、一定の距離を保ったままプレイヤーを追従するところから反映されず、見落としがあったのかと何回も確認したのですが、それでも解決…

---

## ["Find Path to Location Synchronously" always showing valid](https://forums.unrealengine.com/t/find-path-to-location-synchronously-always-showing-valid/386649)

<div class="topic-metadata">

**Author:** [@mgumley](https://forums.unrealengine.com/u/mgumley)\
**Replies:** 3\
**Last updated:** [October 7, 2018, 5:50pm UTC](https://forums.unrealengine.com/t/find-path-to-location-synchronously-always-showing-valid/386649 "2018-10-07T17:50:30Z")

</div>

I’m trying to determine if there is a path from my AI character to the target pawn, in blueprints. I do not want to actually move the pawn yet, but just check if there is a path. I tried using the service shown in the …

---

## [Unwanted blackboardkeys getting added unexpected](https://forums.unrealengine.com/t/unwanted-blackboardkeys-getting-added-unexpected/435059)

<div class="topic-metadata">

**Author:** [@Kanteh](https://forums.unrealengine.com/u/Kanteh)\
**Replies:** 2\
**Last updated:** [October 7, 2018, 12:01pm UTC](https://forums.unrealengine.com/t/unwanted-blackboardkeys-getting-added-unexpected/435059 "2018-10-07T12:01:03Z")

</div>

Hello, i have a problem with the blackboards in UE4-. Im using C++ Blackboards to add my needed keys to the blackboard. Now when i use debuggame editor the blackboard is empty and i can add keys as i want. But when i u…

---

## [How to detect if AI can't reach an actor that IS in the nav mesh?](https://forums.unrealengine.com/t/how-to-detect-if-ai-cant-reach-an-actor-that-is-in-the-nav-mesh/435154)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_23edf920](https://forums.unrealengine.com/u/anonymous_user_23edf920)\
**Replies:** 0\
**Last updated:** [October 6, 2018, 1:48pm UTC](https://forums.unrealengine.com/t/how-to-detect-if-ai-cant-reach-an-actor-that-is-in-the-nav-mesh/435154 "2018-10-06T13:48:53Z")

</div>

So, I apologize this has to be the most simple task ever, yet I’m here struggling to find an answer. I have seen many topics that talk about “is valid”, “is partial” and stuff but those are not returning the results I wa…

---

## [Or...how to constrain AI movement](https://forums.unrealengine.com/t/or-how-to-constrain-ai-movement/435078)

<div class="topic-metadata">

**Author:** [@bobchocolat](https://forums.unrealengine.com/u/bobchocolat)\
**Replies:** 2\
**Last updated:** [October 5, 2018, 2:03pm UTC](https://forums.unrealengine.com/t/or-how-to-constrain-ai-movement/435078 "2018-10-05T14:03:56Z")

</div>

Hello everyone, how to constrain AI movement by square ? I wish my AI moves 300 by 300 to simulate a grid … I know how to do it for my character but not for the enemies Thanks in advance … or not;)

---

## [Grid rotation for fps view](https://forums.unrealengine.com/t/grid-rotation-for-fps-view/435073)

<div class="topic-metadata">

**Author:** [@bobchocolat](https://forums.unrealengine.com/u/bobchocolat)\
**Replies:** 0\
**Last updated:** [October 5, 2018, 8:53am UTC](https://forums.unrealengine.com/t/grid-rotation-for-fps-view/435073 "2018-10-05T08:53:34Z")

</div>

Hello everyone, It’s been 6 days that I block on something … I built a dungeon crawler (Master dungeon, grimrock) and I got to do the movements with vectors … Not knowing how to apply these same movements to an AI, I …

---

## [Can I get a instanced task node in C++?](https://forums.unrealengine.com/t/can-i-get-a-instanced-task-node-in-c/434819)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_13632337](https://forums.unrealengine.com/u/anonymous_user_13632337)\
**Replies:** 2\
**Last updated:** [October 2, 2018, 2:13am UTC](https://forums.unrealengine.com/t/can-i-get-a-instanced-task-node-in-c/434819 "2018-10-02T02:13:14Z")

</div>

I use BehaviorTreeComponent::GetActiveNode() function, but it seem to return a non-instanced node. Like this, behaviorTreeComponent-\>GetActiveInstanceIdx(); returns 1. behaviorTreeComponent-\>GetActiveNode()-\>IsInstanc…

---

## [Accessed None for get Blackboard\_returnvalue](https://forums.unrealengine.com/t/accessed-none-for-get-blackboard-returnvalue/434846)

<div class="topic-metadata">

**Author:** [@AgentArachnid66](https://forums.unrealengine.com/u/AgentArachnid66)\
**Replies:** 0\
**Last updated:** [October 1, 2018, 7:35pm UTC](https://forums.unrealengine.com/t/accessed-none-for-get-blackboard-returnvalue/434846 "2018-10-01T19:35:48Z")

</div>

I am trying to make an AI character. I made it in a separate project, and it worked. When I migrated it over to my main project, all sort of issues propped up. It wasn’t casting to the player properly to detect them. It’…

---

## [Fatal error c1083 Cannot open include file "AI/Navigation/NavigationSystem.h"](https://forums.unrealengine.com/t/fatal-error-c1083-cannot-open-include-file-ai-navigation-navigationsystem-h/434754)

<div class="topic-metadata">

**Author:** [@Feureau](https://forums.unrealengine.com/u/Feureau)\
**Replies:** 3\
**Last updated:** [September 30, 2018, 2:44pm UTC](https://forums.unrealengine.com/t/fatal-error-c1083-cannot-open-include-file-ai-navigation-navigationsystem-h/434754 "2018-09-30T14:44:34Z")

</div>

I’m trying to use the AI navigation system UNavigationSystem::SimpleMoveToActor and tried to include the file but it keeps giving me the error. Any idea on how to fix this? I tried adding “NavigationSystem” on the Buil…

---

## [Is it possible to change the acceptance raduis for 'ai move to' whilst the ai is moving? (Weeping Angel)](https://forums.unrealengine.com/t/is-it-possible-to-change-the-acceptance-raduis-for-ai-move-to-whilst-the-ai-is-moving-weeping-angel/434764)

<div class="topic-metadata">

**Author:** [@Blockpuss](https://forums.unrealengine.com/u/Blockpuss)\
**Replies:** 0\
**Last updated:** [September 30, 2018, 11:38am UTC](https://forums.unrealengine.com/t/is-it-possible-to-change-the-acceptance-raduis-for-ai-move-to-whilst-the-ai-is-moving-weeping-angel/434764 "2018-09-30T11:38:57Z")

</div>

I am trying to get an AI character to only move towards the player when you are not looking at it (weeping angel) but I have a problem; when it starts moving after you have turned away if you look back it will not stop. …

---

## [AI Agro on each other](https://forums.unrealengine.com/t/ai-agro-on-each-other/434722)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_8c850b5a](https://forums.unrealengine.com/u/anonymous_user_8c850b5a)\
**Replies:** 0\
**Last updated:** [September 29, 2018, 12:55pm UTC](https://forums.unrealengine.com/t/ai-agro-on-each-other/434722 "2018-09-29T12:55:54Z")

</div>

I have been following the AI Behaviour Tree quick start guide, however when I create more than one AI character (For example, with the skeleton army pack that provides four different models), I’ve noticed that the AI wil…

---

## [AI moving backwards](https://forums.unrealengine.com/t/ai-moving-backwards/434679)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_dc2070b31](https://forums.unrealengine.com/u/anonymous_user_dc2070b31)\
**Replies:** 0\
**Last updated:** [September 28, 2018, 7:21pm UTC](https://forums.unrealengine.com/t/ai-moving-backwards/434679 "2018-09-28T19:21:28Z")

</div>

Hi, my new AI is moving in completely wrong direction, and I cant figure out why. It should be moving towards player, but its moving backwards while constantly looking towards player. AI mesh is turned in right directio…

---

## [How do I create Team AI in the shooter game template?](https://forums.unrealengine.com/t/how-do-i-create-team-ai-in-the-shooter-game-template/406808)

<div class="topic-metadata">

**Author:** [@Nekai](https://forums.unrealengine.com/u/Nekai)\
**Replies:** 1\
**Last updated:** [September 27, 2018, 4:38pm UTC](https://forums.unrealengine.com/t/how-do-i-create-team-ai-in-the-shooter-game-template/406808 "2018-09-27T16:38:31Z")

</div>

How do create friendly AI in the shooter game template? like have them attack the enemy and not attack me?

---

## [Different float values with different outcome](https://forums.unrealengine.com/t/different-float-values-with-different-outcome/434466)

<div class="topic-metadata">

**Author:** [@zamielGrimwalker](https://forums.unrealengine.com/u/zamielGrimwalker)\
**Replies:** 3\
**Last updated:** [September 26, 2018, 6:56pm UTC](https://forums.unrealengine.com/t/different-float-values-with-different-outcome/434466 "2018-09-26T18:56:04Z")

</div>

So im trying to make an AI perception system. Its practically done but im afraid i coded it in the worst possible way so im asking if the code could be improved (it probably can which is why im here) the perception compo…

---

## [Exclude area from EQS-based pathing](https://forums.unrealengine.com/t/exclude-area-from-eqs-based-pathing/434375)

<div class="topic-metadata">

**Author:** [@fnor](https://forums.unrealengine.com/u/fnor)\
**Replies:** 3\
**Last updated:** [September 25, 2018, 7:44pm UTC](https://forums.unrealengine.com/t/exclude-area-from-eqs-based-pathing/434375 "2018-09-25T19:44:58Z")

</div>

I am trying to get an AI actor to flee from a player actor. I have set up the AI actor with vision perception to detect the player actor which activates an EQS query which does a very good job of finding hiding spots fro…

---

## [NavigationQueryFilter Ignored sometimes](https://forums.unrealengine.com/t/navigationqueryfilter-ignored-sometimes/434408)

<div class="topic-metadata">

**Author:** [@Anonymous\_e5d5c0bf7d300728867097ff79906dbe](https://forums.unrealengine.com/u/Anonymous_e5d5c0bf7d300728867097ff79906dbe)\
**Replies:** 1\
**Last updated:** [September 25, 2018, 12:16am UTC](https://forums.unrealengine.com/t/navigationqueryfilter-ignored-sometimes/434408 "2018-09-25T00:16:29Z")

</div>

I am using detour crowd and NavQueryFilter with NavArea classes. For some reason sometimes (like 50% of the times) the pathfinder is ignoring my navquerryfilters completely. E.G. My AI is pathing through the Excluded …

---

## [\[Feature Request\] Random Decorater Timelimit](https://forums.unrealengine.com/t/feature-request-random-decorater-timelimit/434422)

<div class="topic-metadata">

**Author:** [@lumbabumba](https://forums.unrealengine.com/u/lumbabumba)\
**Replies:** 0\
**Last updated:** [September 24, 2018, 9:38pm UTC](https://forums.unrealengine.com/t/feature-request-random-decorater-timelimit/434422 "2018-09-24T21:38:12Z")

</div>

Hi, for me good AI is unpredictable. The timelimit decorater has a static timelimit but it would be much better if you could set up a range for a random timelimit. It’s a small feature request with a huge impact on unpr…

---

## [Industrial robot with AI](https://forums.unrealengine.com/t/industrial-robot-with-ai/434358)

<div class="topic-metadata">

**Author:** [@steeljaeger](https://forums.unrealengine.com/u/steeljaeger)\
**Replies:** 1\
**Last updated:** [September 24, 2018, 12:12am UTC](https://forums.unrealengine.com/t/industrial-robot-with-ai/434358 "2018-09-24T00:12:32Z")

</div>

Hi! So I had an idea of a new project with a industrial robot that has AI but not so sure if it´s possible in UE4. The goal is to give the robot AI so it could pick up an item/ object and learn witch is the best way to…

---

## [UE4 Reference A.I Mesh Inside Different Blueprints](https://forums.unrealengine.com/t/ue4-reference-a-i-mesh-inside-different-blueprints/434277)

<div class="topic-metadata">

**Author:** [@ItsLightsaber09](https://forums.unrealengine.com/u/ItsLightsaber09)\
**Replies:** 9\
**Last updated:** [September 23, 2018, 11:45pm UTC](https://forums.unrealengine.com/t/ue4-reference-a-i-mesh-inside-different-blueprints/434277 "2018-09-23T23:45:30Z")

</div>

So I made an A.I Character, (Its just the UE4 mannequin) and I need to grab his mesh and put It In different blueprints. Is there any way to do this? I dont know If casting works cause I have no Idea how to use that. If …

---

## [How do you create an AI?](https://forums.unrealengine.com/t/how-do-you-create-an-ai/434264)

<div class="topic-metadata">

**Author:** [@OxtaridigriamAc2](https://forums.unrealengine.com/u/OxtaridigriamAc2)\
**Replies:** 1\
**Last updated:** [September 22, 2018, 8:36am UTC](https://forums.unrealengine.com/t/how-do-you-create-an-ai/434264 "2018-09-22T08:36:02Z")

</div>

Ive watched tutorials of this but they are not working. Plz say a way for me to make it in 4.20.3!

---

## [Built dedicated server behave differently from editor dedicated server](https://forums.unrealengine.com/t/built-dedicated-server-behave-differently-from-editor-dedicated-server/428473)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_964127f1](https://forums.unrealengine.com/u/anonymous_user_964127f1)\
**Replies:** 2\
**Last updated:** [September 21, 2018, 8:08pm UTC](https://forums.unrealengine.com/t/built-dedicated-server-behave-differently-from-editor-dedicated-server/428473 "2018-09-21T20:08:07Z")

</div>

Hi, i have followed this guide A new, community-hosted Unreal Engine Wiki - Announcements - Epic Developer Community Forums to create a dedicated server for my project. Now i have a problem: while running the map with t…

---

## [NavSys:None on SimpleMoveToActor](https://forums.unrealengine.com/t/navsys-none-on-simplemovetoactor/434205)

<div class="topic-metadata">

**Author:** [@Valerik87](https://forums.unrealengine.com/u/Valerik87)\
**Replies:** 0\
**Last updated:** [September 21, 2018, 12:45pm UTC](https://forums.unrealengine.com/t/navsys-none-on-simplemovetoactor/434205 "2018-09-21T12:45:46Z")

</div>

Hello, I’m doing some test with NavMesh and AI movement in a procedurally generated world, using this link as reference: A NavMesh Bounds Volume is placed and is large enough to contain… 2)… a spawned actor where MyC…

---

## [Disable AI or stop AI Tick based on distance for bots](https://forums.unrealengine.com/t/disable-ai-or-stop-ai-tick-based-on-distance-for-bots/434040)

<div class="topic-metadata">

**Author:** [@FBTH](https://forums.unrealengine.com/u/FBTH)\
**Replies:** 5\
**Last updated:** [September 21, 2018, 6:03am UTC](https://forums.unrealengine.com/t/disable-ai-or-stop-ai-tick-based-on-distance-for-bots/434040 "2018-09-21T06:03:17Z")

</div>

I was wondering if there was a way to have AI disable or stop ticking once the AI is out of range, and re-enable or start ticking once in range. Currently, the FPS is unbearable and hiccups from 100+fps (Standard without…

---

## [How can I made my AI walk on wall and ceiling?](https://forums.unrealengine.com/t/how-can-i-made-my-ai-walk-on-wall-and-ceiling/311371)

<div class="topic-metadata">

**Author:** [@Dan3DIM](https://forums.unrealengine.com/u/Dan3DIM)\
**Replies:** 5\
**Last updated:** [September 19, 2018, 8:38pm UTC](https://forums.unrealengine.com/t/how-can-i-made-my-ai-walk-on-wall-and-ceiling/311371 "2018-09-19T20:38:12Z")

</div>

I just learn AI to chase player around the level. But too bad I cant finish it because behavior tree quick start guide page 12 is missing. don’t know what to do in behavior tree. I would want have some of my creature ab…

---

## [EQS generated around other then the querier](https://forums.unrealengine.com/t/eqs-generated-around-other-then-the-querier/312277)

<div class="topic-metadata">

**Author:** [@a\_najafi](https://forums.unrealengine.com/u/a_najafi)\
**Replies:** 3\
**Last updated:** [September 18, 2018, 5:13pm UTC](https://forums.unrealengine.com/t/eqs-generated-around-other-then-the-querier/312277 "2018-09-18T17:13:49Z")

</div>

Hey there guys so i have been testing around with the eqs and it is realy powerfull i have already been able to give the ai the power to jump over obstcles and later probably making it jump on higher platforms when need…

---

## [Behavior Tree crash when adding Blackboard Decorator](https://forums.unrealengine.com/t/behavior-tree-crash-when-adding-blackboard-decorator/283811)

<div class="topic-metadata">

**Author:** [@apuntoprieto](https://forums.unrealengine.com/u/apuntoprieto)\
**Replies:** 8\
**Last updated:** [September 18, 2018, 8:09am UTC](https://forums.unrealengine.com/t/behavior-tree-crash-when-adding-blackboard-decorator/283811 "2018-09-18T08:09:11Z")

</div>

Hi you all! I’m using the awesome Behavior Tree editor and I’ve encountered an error that makes the UE4 Editor crash. This happens every time when I add a Blackboard decorator in a Selector Node and click on it to inspe…

---

## [How to spawn actors after 'death' of another?](https://forums.unrealengine.com/t/how-to-spawn-actors-after-death-of-another/433941)

<div class="topic-metadata">

**Author:** [@MKWatson](https://forums.unrealengine.com/u/MKWatson)\
**Replies:** 2\
**Last updated:** [September 17, 2018, 10:41pm UTC](https://forums.unrealengine.com/t/how-to-spawn-actors-after-death-of-another/433941 "2018-09-17T22:41:58Z")

</div>

Hi all! :smiley: I’m looking into having my enemy AI spawn one after another but in a specific place and in specific numbers, but not entirely sure how to do this. Currently, I have trigger boxes with activate a SpawnA…

---

## [Set Value As Object shows value as invalid in behavior tree](https://forums.unrealengine.com/t/set-value-as-object-shows-value-as-invalid-in-behavior-tree/433204)

<div class="topic-metadata">

**Author:** [@BaconGaming97](https://forums.unrealengine.com/u/BaconGaming97)\
**Replies:** 3\
**Last updated:** [September 17, 2018, 8:41pm UTC](https://forums.unrealengine.com/t/set-value-as-object-shows-value-as-invalid-in-behavior-tree/433204 "2018-09-17T20:41:12Z")

</div>

I have a value in my blackboard called “EnemyAI”. I set it using SetValueAsObject, and I can even use the value right after that using GetValueAsObject, but the Behavior tree always shows that it is invalid. EnemyAI bei…

---

## [AI having inconsistent behaviour](https://forums.unrealengine.com/t/ai-having-inconsistent-behaviour/433937)

<div class="topic-metadata">

**Author:** [@AliceHalley](https://forums.unrealengine.com/u/AliceHalley)\
**Replies:** 5\
**Last updated:** [September 17, 2018, 3:50pm UTC](https://forums.unrealengine.com/t/ai-having-inconsistent-behaviour/433937 "2018-09-17T15:50:00Z")

</div>

I have an AI set up. It’s not using a behaviour tree, it’s just a simple blueprint. I have some ranged enemies that have some pretty basic behaviour such as: See Player \> Attack Them, Can’t See Player \> Simple Move To Cl…

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

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