# AI

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

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

**Page:** 42

---

## [How do you make a stealth like vision system where actors are only visible inside a vision cone?](https://forums.unrealengine.com/t/how-do-you-make-a-stealth-like-vision-system-where-actors-are-only-visible-inside-a-vision-cone/668733)

<div class="topic-metadata">

**Author:** [@Its\_Hexa](https://forums.unrealengine.com/u/Its_Hexa)\
**Replies:** 0\
**Last updated:** [October 13, 2022, 11:54am UTC](https://forums.unrealengine.com/t/how-do-you-make-a-stealth-like-vision-system-where-actors-are-only-visible-inside-a-vision-cone/668733 "2022-10-13T11:54:37Z")

</div>

Hello all, I am working on a topdown project where I want to have the player controlled character have stealth (among us-like) vision. I currently have a vision cone in front of the player with an illuminating opaque ma…

---

## [Ai Perception tag always returns "None"](https://forums.unrealengine.com/t/ai-perception-tag-always-returns-none/667969)

<div class="topic-metadata">

**Author:** [@Lowenfas](https://forums.unrealengine.com/u/Lowenfas)\
**Replies:** 2\
**Last updated:** [October 12, 2022, 5:03pm UTC](https://forums.unrealengine.com/t/ai-perception-tag-always-returns-none/667969 "2022-10-12T17:03:03Z")

</div>

I am trying to differentiate between my Ai’s seeing and hearing perception but it’s not working. I keep seeing to use the stimulus tag and check if it’s equal to ‘Noise’ but my tag always returns “None”. I am using “On …

---

## [Behavior tree how to trigger hit animation?](https://forums.unrealengine.com/t/behavior-tree-how-to-trigger-hit-animation/666593)

<div class="topic-metadata">

**Author:** [@enzoravo](https://forums.unrealengine.com/u/enzoravo)\
**Replies:** 6\
**Last updated:** [October 11, 2022, 9:56pm UTC](https://forums.unrealengine.com/t/behavior-tree-how-to-trigger-hit-animation/666593 "2022-10-11T21:56:32Z")

</div>

Hi, i’m trying to code my basic AI behavior tree, i found a good epic youtube tutorial for behavior tree and so far i got my enemy to patrol, investigate follow player, attack player and die from the behavior tree. Now …

---

## [Reinforcement learning, mindmaker](https://forums.unrealengine.com/t/reinforcement-learning-mindmaker/666842)

<div class="topic-metadata">

**Author:** [@1sirianth1](https://forums.unrealengine.com/u/1sirianth1)\
**Replies:** 1\
**Last updated:** [October 11, 2022, 7:55pm UTC](https://forums.unrealengine.com/t/reinforcement-learning-mindmaker/666842 "2022-10-11T19:55:11Z")

</div>

I downloaded the mindmaker plugin and am having some trouble using it. Has anyone used it with success?

---

## [Adding a nav bounds modifier to a road building](https://forums.unrealengine.com/t/adding-a-nav-bounds-modifier-to-a-road-building/666185)

<div class="topic-metadata">

**Author:** [@kikathom](https://forums.unrealengine.com/u/kikathom)\
**Replies:** 2\
**Last updated:** [October 11, 2022, 7:04am UTC](https://forums.unrealengine.com/t/adding-a-nav-bounds-modifier-to-a-road-building/666185 "2022-10-11T07:04:49Z")

</div>

Hi I am making a village builder game and I am trying to make the Unit AI. I am wanting the player to be able to make roads that the all the units will use. I am thinking of attaching a nav modifier volume to each roa…

---

## [Need a method to forbid dll generation of module for game editor](https://forums.unrealengine.com/t/need-a-method-to-forbid-dll-generation-of-module-for-game-editor/666909)

<div class="topic-metadata">

**Author:** [@old\_xia](https://forums.unrealengine.com/u/old_xia)\
**Replies:** 0\
**Last updated:** [October 11, 2022, 7:03am UTC](https://forums.unrealengine.com/t/need-a-method-to-forbid-dll-generation-of-module-for-game-editor/666909 "2022-10-11T07:03:07Z")

</div>

In order to link with 3rd party static library with multiple game modules, I need a way to tell UBT do not generate dll for most game modules, since the 3rd party static library have global var and private heap issues wh…

---

## [\[BUG\] Both RVO and DetourCrowd have bugs](https://forums.unrealengine.com/t/bug-both-rvo-and-detourcrowd-have-bugs/666111)

<div class="topic-metadata">

**Author:** [@handsomelambert](https://forums.unrealengine.com/u/handsomelambert)\
**Replies:** 0\
**Last updated:** [October 10, 2022, 7:31am UTC](https://forums.unrealengine.com/t/bug-both-rvo-and-detourcrowd-have-bugs/666111 "2022-10-10T07:31:31Z")

</div>

Now I use UE 5.0.3 version to simulate crowd avoidance(about 500 pawns). I find some bugs in RVO and DetourCrowd : (1) RVO : Out of NavMesh, pawns will be stuck and can’t move to destination any more. (2) DetourCrowd …

---

## [PyTorch, TensorFlow, scikit learn](https://forums.unrealengine.com/t/pytorch-tensorflow-scikit-learn/649725)

<div class="topic-metadata">

**Author:** [@dwarf1977](https://forums.unrealengine.com/u/dwarf1977)\
**Replies:** 2\
**Last updated:** [October 9, 2022, 10:22pm UTC](https://forums.unrealengine.com/t/pytorch-tensorflow-scikit-learn/649725 "2022-10-09T22:22:05Z")

</div>

Hello, one of the strengths of UE5 is the management of the “AI”, in fact of the script, as we see in Elder Scrolls V: Skyrim. My core business is machine learning, so I speak python fluently. Is it planned in the next m…

---

## [Error "can not open source file" occur in UE5 build in class](https://forums.unrealengine.com/t/error-can-not-open-source-file-occur-in-ue5-build-in-class/665681)

<div class="topic-metadata">

**Author:** [@AnnieAngelia](https://forums.unrealengine.com/u/AnnieAngelia)\
**Replies:** 0\
**Last updated:** [October 9, 2022, 2:15pm UTC](https://forums.unrealengine.com/t/error-can-not-open-source-file-occur-in-ue5-build-in-class/665681 "2022-10-09T14:15:08Z")

</div>

This is UE build in class Character, the soucre files are not found in Character.cpp file. when I try to open someone(CapsuleComponent.h) of them by F12, the system tell me that the file I want to open is not found. B…

---

## [How to make Lyra AI attack with melee?](https://forums.unrealengine.com/t/how-to-make-lyra-ai-attack-with-melee/664707)

<div class="topic-metadata">

**Author:** [@DORMINX](https://forums.unrealengine.com/u/DORMINX)\
**Replies:** 2\
**Last updated:** [October 9, 2022, 6:13am UTC](https://forums.unrealengine.com/t/how-to-make-lyra-ai-attack-with-melee/664707 "2022-10-09T06:13:58Z")

</div>

Hello, I am trying to make my AI in Lyra attack with melee weapons. I have a behavior tree made with a move to service and a melee attack service, however, I am not sure how to finish the code for the melee attack servi…

---

## [Pawn will not move on spawn even when Auto Possess AI is set to "Placed or Spawned"](https://forums.unrealengine.com/t/pawn-will-not-move-on-spawn-even-when-auto-possess-ai-is-set-to-placed-or-spawned/455105)

<div class="topic-metadata">

**Author:** [@ArdentCoder](https://forums.unrealengine.com/u/ArdentCoder)\
**Replies:** 14\
**Last updated:** [October 7, 2022, 10:20pm UTC](https://forums.unrealengine.com/t/pawn-will-not-move-on-spawn-even-when-auto-possess-ai-is-set-to-placed-or-spawned/455105 "2022-10-07T22:20:56Z")

</div>

I am having a hard time finding my way though this current issue. I have a simple enemy pawn using Simple Move to Actor (I have also tried AI Move To Location or Actor) which works when placed in the world manually, but …

---

## [\[Answered\] Move to Location not working when World Partition is enabled](https://forums.unrealengine.com/t/answered-move-to-location-not-working-when-world-partition-is-enabled/664458)

<div class="topic-metadata">

**Author:** [@unit23](https://forums.unrealengine.com/u/unit23)\
**Replies:** 0\
**Last updated:** [October 7, 2022, 4:40pm UTC](https://forums.unrealengine.com/t/answered-move-to-location-not-working-when-world-partition-is-enabled/664458 "2022-10-07T16:40:42Z")

</div>

When the setting ‘Is World Partitioned’ is enabled, while the map is not using world partition, aborts all ai movement without producing an error (the node Ai Move to prints Aborted). Tested with 5.0.3 Solution: Either…

---

## [How to pass an dictionary type（map）Variables to blackboard？](https://forums.unrealengine.com/t/how-to-pass-an-dictionary-type-map-variables-to-blackboard/661551)

<div class="topic-metadata">

**Author:** [@lezard1999](https://forums.unrealengine.com/u/lezard1999)\
**Replies:** 3\
**Last updated:** [October 7, 2022, 1:07am UTC](https://forums.unrealengine.com/t/how-to-pass-an-dictionary-type-map-variables-to-blackboard/661551 "2022-10-07T01:07:14Z")

</div>

Hi there I am wondering how to pass an dictionary type（map）variables to blackboard. the keys are actor ref type and the values’s type is structure I have created in Engine. Somehow when I am trying to add the blackboa…

---

## [Character does not rotate (Behavior Tree rotate)](https://forums.unrealengine.com/t/character-does-not-rotate-behavior-tree-rotate/662320)

<div class="topic-metadata">

**Author:** [@ChunkyCat](https://forums.unrealengine.com/u/ChunkyCat)\
**Replies:** 5\
**Last updated:** [October 6, 2022, 3:32am UTC](https://forums.unrealengine.com/t/character-does-not-rotate-behavior-tree-rotate/662320 "2022-10-06T03:32:51Z")

</div>

Hello, I am currently having an issue regarding behavior tree functions. I am using a function in which is supposed to rotate the AI Character to the direction to where the enemy is facing but for some reason the functio…

---

## [How can I make enemy detection in a certain area while looking through ally/neutral entities?](https://forums.unrealengine.com/t/how-can-i-make-enemy-detection-in-a-certain-area-while-looking-through-ally-neutral-entities/657567)

<div class="topic-metadata">

**Author:** [@Tonetfal](https://forums.unrealengine.com/u/Tonetfal)\
**Replies:** 17\
**Last updated:** [October 3, 2022, 9:23am UTC](https://forums.unrealengine.com/t/how-can-i-make-enemy-detection-in-a-certain-area-while-looking-through-ally-neutral-entities/657567 "2022-10-03T09:23:42Z")

</div>

Hello, I’m creating a tower defense game, and I’m struggling with detection system. First of all I have to clarify something: the game I’m creating doesn’t have just some path for enemies that they follow up to the end,…

---

## [How to force success in custom Behavior Tree Decorators?](https://forums.unrealengine.com/t/how-to-force-success-in-custom-behavior-tree-decorators/488922)

<div class="topic-metadata">

**Author:** [@ShadowShurikenStds](https://forums.unrealengine.com/u/ShadowShurikenStds)\
**Replies:** 1\
**Last updated:** [October 1, 2022, 4:25pm UTC](https://forums.unrealengine.com/t/how-to-force-success-in-custom-behavior-tree-decorators/488922 "2022-10-01T16:25:33Z")

</div>

I’m working on some custom blueprint-based behavior tree tasks and decorators for my game. I wanted to know if it’s possible to force success in a custom decorator. Similar to the actual “force success” decorator, that u…

---

## [I cant solve a bug involving a AI killing the player inside a locker](https://forums.unrealengine.com/t/i-cant-solve-a-bug-involving-a-ai-killing-the-player-inside-a-locker/660097)

<div class="topic-metadata">

**Author:** [@EnjGames](https://forums.unrealengine.com/u/EnjGames)\
**Replies:** 1\
**Last updated:** [October 1, 2022, 2:13pm UTC](https://forums.unrealengine.com/t/i-cant-solve-a-bug-involving-a-ai-killing-the-player-inside-a-locker/660097 "2022-10-01T14:13:28Z")

</div>

I watched this tutorial here: AI Searches Through Locker And Catches Player - Unreal Engine 4 Tutorial - YouTube The problem Im having with this is that if the AI go to a locker that is not in the direction of the AI fa…

---

## [How to add the "Data Binding" option for a variable in a custom query generator BP](https://forums.unrealengine.com/t/how-to-add-the-data-binding-option-for-a-variable-in-a-custom-query-generator-bp/655568)

<div class="topic-metadata">

**Author:** [@Majestrixxx](https://forums.unrealengine.com/u/Majestrixxx)\
**Replies:** 6\
**Last updated:** [September 30, 2022, 7:44pm UTC](https://forums.unrealengine.com/t/how-to-add-the-data-binding-option-for-a-variable-in-a-custom-query-generator-bp/655568 "2022-09-30T19:44:19Z")

</div>

Hi everyone! I want to add the “Data Binding” option for my variables in my created query generator BluePrint. Should look like this: But I can only set my created variables, so just adding a variable isnt enought: …

---

## [How to make a generic Env Query Generator? (EQS)](https://forums.unrealengine.com/t/how-to-make-a-generic-env-query-generator-eqs/659679)

<div class="topic-metadata">

**Author:** [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Replies:** 3\
**Last updated:** [September 30, 2022, 4:29pm UTC](https://forums.unrealengine.com/t/how-to-make-a-generic-env-query-generator-eqs/659679 "2022-09-30T16:29:46Z")

</div>

I have a recurring problem in my game. On many occasions I need to know if an object has a parent or not. I have a concrete solution to this problem. But I don’t know how to make it work with different classes of o…

---

## [Pathfinding returning suboptimal paths](https://forums.unrealengine.com/t/pathfinding-returning-suboptimal-paths/371206)

<div class="topic-metadata">

**Author:** [@kamrann](https://forums.unrealengine.com/u/kamrann)\
**Replies:** 7\
**Last updated:** [September 30, 2022, 2:59am UTC](https://forums.unrealengine.com/t/pathfinding-returning-suboptimal-paths/371206 "2022-09-30T02:59:24Z")

</div>

I’ve been seeing strange results of pathfinding, where the calculated path seems to want to avoid crossing certain polygons on the navmesh, and as such takes long routes going via polygon vertices when it should be evalu…

---

## [Character may enter Area which has set NavArea\_Obstack By move to](https://forums.unrealengine.com/t/character-may-enter-area-which-has-set-navarea-obstack-by-move-to/657539)

<div class="topic-metadata">

**Author:** [@dda11479c5e14fc6ab6fc5e49ddd0054](https://forums.unrealengine.com/u/dda11479c5e14fc6ab6fc5e49ddd0054)\
**Replies:** 3\
**Last updated:** [September 29, 2022, 10:04am UTC](https://forums.unrealengine.com/t/character-may-enter-area-which-has-set-navarea-obstack-by-move-to/657539 "2022-09-29T10:04:36Z")

</div>

The wrong case video I hope zombie can void the landmine by set the read area with NavArea\_Obstacle.But it don’t work somtime.

---

## [Enemy AI and Group formation](https://forums.unrealengine.com/t/enemy-ai-and-group-formation/658688)

<div class="topic-metadata">

**Author:** [@KeanuwL](https://forums.unrealengine.com/u/KeanuwL)\
**Replies:** 0\
**Last updated:** [September 29, 2022, 2:26am UTC](https://forums.unrealengine.com/t/enemy-ai-and-group-formation/658688 "2022-09-29T02:26:18Z")

</div>

Hello, The idea behind this system is complex, all combat NPCs will have a behavior tree which she will be responsible for defining the position of each NPC within a combat formation. With this we will have a quadrant a…

---

## [What do you use to plan your AI?](https://forums.unrealengine.com/t/what-do-you-use-to-plan-your-ai/657667)

<div class="topic-metadata">

**Author:** [@MrGoatsy](https://forums.unrealengine.com/u/MrGoatsy)\
**Replies:** 8\
**Last updated:** [September 28, 2022, 11:21pm UTC](https://forums.unrealengine.com/t/what-do-you-use-to-plan-your-ai/657667 "2022-09-28T23:21:47Z")

</div>

What program if any do you use to plan what your AI does and how it functions? I mean something similar as MySQL Workbench for databases, but in this case for AI.

---

## [AI Behavior Tree MoveTo : How to dynamically change target?](https://forums.unrealengine.com/t/ai-behavior-tree-moveto-how-to-dynamically-change-target/658460)

<div class="topic-metadata">

**Author:** [@Craze](https://forums.unrealengine.com/u/Craze)\
**Replies:** 2\
**Last updated:** [September 28, 2022, 11:07pm UTC](https://forums.unrealengine.com/t/ai-behavior-tree-moveto-how-to-dynamically-change-target/658460 "2022-09-28T23:07:52Z")

</div>

Hello ! I currently have an AI that follows the player, but at one point I am changing the value of the ‘objective’ of the AI, switching it from the player to a random point. However when I change the value, the AI tha…

---

## [AIPerception Senses config ignores multiple AI Sight Configs](https://forums.unrealengine.com/t/aiperception-senses-config-ignores-multiple-ai-sight-configs/637009)

<div class="topic-metadata">

**Author:** [@graewolvneal](https://forums.unrealengine.com/u/graewolvneal)\
**Replies:** 6\
**Last updated:** [September 28, 2022, 2:47pm UTC](https://forums.unrealengine.com/t/aiperception-senses-config-ignores-multiple-ai-sight-configs/637009 "2022-09-28T14:47:48Z")

</div>

I am trying to create an AI Perception system where the AI has multiple vision cones which give different behaviours, e.g, a short range wide angle cone to represent peripheral vision, a long range narrow cone to represe…

---

## [After getting a Path from the Nav mesh, check if there is an actor at that location](https://forums.unrealengine.com/t/after-getting-a-path-from-the-nav-mesh-check-if-there-is-an-actor-at-that-location/658170)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_a510efe9](https://forums.unrealengine.com/u/anonymous_user_a510efe9)\
**Replies:** 1\
**Last updated:** [September 28, 2022, 11:02am UTC](https://forums.unrealengine.com/t/after-getting-a-path-from-the-nav-mesh-check-if-there-is-an-actor-at-that-location/658170 "2022-09-28T11:02:04Z")

</div>

Hello, I’m using the Flying Nav Mesh plugin to have my AI move around. This works fine but I’m trying to think of a good way to check if there is an actor or object on the goal location of the path. I know I can get ever…

---

## [How do I Stop simple parallel from running infinitely?](https://forums.unrealengine.com/t/how-do-i-stop-simple-parallel-from-running-infinitely/655730)

<div class="topic-metadata">

**Author:** [@Codename\_Prince](https://forums.unrealengine.com/u/Codename_Prince)\
**Replies:** 8\
**Last updated:** [September 27, 2022, 11:52pm UTC](https://forums.unrealengine.com/t/how-do-i-stop-simple-parallel-from-running-infinitely/655730 "2022-09-27T23:52:28Z")

</div>

I followed this video… AI Strafe In Circle Behavior Tree UE4 Tutorial - YouTube I have discovered that my AI will play the simple parallel forever. I need my AI to move on to the next sequence and attack. Strafing …

---

## [Another weird AI problem - Added sound response - Investigate - Now AI doesntt move](https://forums.unrealengine.com/t/another-weird-ai-problem-added-sound-response-investigate-now-ai-doesntt-move/657741)

<div class="topic-metadata">

**Author:** [@BO-DACIOUS](https://forums.unrealengine.com/u/BO-DACIOUS)\
**Replies:** 3\
**Last updated:** [September 27, 2022, 11:27pm UTC](https://forums.unrealengine.com/t/another-weird-ai-problem-added-sound-response-investigate-now-ai-doesntt-move/657741 "2022-09-27T23:27:56Z")

</div>

Really desperate for a win here. I added a sub tree for the AI to hear my char whistle and now it just stands there doing nothing. The tree stays jn the sub tree i have in the red box in the image, and never leaves it. I…

---

## [Ai Perception: Not Updating on Patroling Enemy](https://forums.unrealengine.com/t/ai-perception-not-updating-on-patroling-enemy/657303)

<div class="topic-metadata">

**Author:** [@Fraeger](https://forums.unrealengine.com/u/Fraeger)\
**Replies:** 0\
**Last updated:** [September 27, 2022, 8:48am UTC](https://forums.unrealengine.com/t/ai-perception-not-updating-on-patroling-enemy/657303 "2022-09-27T08:48:23Z")

</div>

Hi there! I am using Ai Perception on an NPC that is patroling and setting different things when he & looses sight of my playercharacter. All works well when my player walks into and out of his sight. However if the NPC…

---

## [BEAT EM UP GAME - How to make a simple AI move to like behavior from scratch (without navmesh)?](https://forums.unrealengine.com/t/beat-em-up-game-how-to-make-a-simple-ai-move-to-like-behavior-from-scratch-without-navmesh/587452)

<div class="topic-metadata">

**Author:** [@usa423](https://forums.unrealengine.com/u/usa423)\
**Replies:** 4\
**Last updated:** [September 27, 2022, 4:27am UTC](https://forums.unrealengine.com/t/beat-em-up-game-how-to-make-a-simple-ai-move-to-like-behavior-from-scratch-without-navmesh/587452 "2022-09-27T04:27:36Z")

</div>

I have a BEU template I’m working on. I want to simply have a box collision on an enemy character, and if the player overlaps it, the enemy moves toward the player (enemy from an idle pose to walking pose). Considering…

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

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