# AI

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

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

**Page:** 51

---

## [Robo vacuum cleaner tank!](https://forums.unrealengine.com/t/robo-vacuum-cleaner-tank/502824)

<div class="topic-metadata">

**Author:** [@WoodWalker](https://forums.unrealengine.com/u/WoodWalker)\
**Replies:** 0\
**Last updated:** [February 28, 2022, 2:31pm UTC](https://forums.unrealengine.com/t/robo-vacuum-cleaner-tank/502824 "2022-02-28T14:31:51Z")

</div>

Hello! We’re working on a multiplayer/party game about cats! We’re looking for advice about how to approach a new feature we’d like to build: a “king of the hill” game mode where players ride and vie for control of a r…

---

## [How to set behavior tree keys via C++?](https://forums.unrealengine.com/t/how-to-set-behavior-tree-keys-via-c/502636)

<div class="topic-metadata">

**Author:** [@Pretzelman127](https://forums.unrealengine.com/u/Pretzelman127)\
**Replies:** 1\
**Last updated:** [February 28, 2022, 12:25pm UTC](https://forums.unrealengine.com/t/how-to-set-behavior-tree-keys-via-c/502636 "2022-02-28T12:25:10Z")

</div>

I’ve done what I thought were the steps to enable behavior tree key setting via C++, but it’s not working… kind of. See the photo of some of the blackboard keys being set, and some not. Why is this? Also see photo to s…

---

## [Blueprint Drop Down Menu Select Feature Not Working for BehaviorTree](https://forums.unrealengine.com/t/blueprint-drop-down-menu-select-feature-not-working-for-behaviortree/502491)

<div class="topic-metadata">

**Author:** [@Pretzelman127](https://forums.unrealengine.com/u/Pretzelman127)\
**Replies:** 4\
**Last updated:** [February 27, 2022, 3:44am UTC](https://forums.unrealengine.com/t/blueprint-drop-down-menu-select-feature-not-working-for-behaviortree/502491 "2022-02-27T03:44:21Z")

</div>

The drop down menu in my enemy blueprint seems to be bugged. I can’t select any of the available behavior trees listed in the menu. I have had success selecting the “create Behavior Tree” menu item at the top of the drop…

---

## [This does not actually make my AI character strafe. How do I tell the character to face the player and strafe to a destination?](https://forums.unrealengine.com/t/this-does-not-actually-make-my-ai-character-strafe-how-do-i-tell-the-character-to-face-the-player-and-strafe-to-a-destination/490748)

<div class="topic-metadata">

**Author:** [@Unisink2020](https://forums.unrealengine.com/u/Unisink2020)\
**Replies:** 1\
**Last updated:** [February 25, 2022, 5:25am UTC](https://forums.unrealengine.com/t/this-does-not-actually-make-my-ai-character-strafe-how-do-i-tell-the-character-to-face-the-player-and-strafe-to-a-destination/490748 "2022-02-25T05:25:54Z")

</div>

---

## [AI Jitters when he is walking straight](https://forums.unrealengine.com/t/ai-jitters-when-he-is-walking-straight/501916)

<div class="topic-metadata">

**Author:** [@The\_NL](https://forums.unrealengine.com/u/The_NL)\
**Replies:** 1\
**Last updated:** [February 25, 2022, 12:04am UTC](https://forums.unrealengine.com/t/ai-jitters-when-he-is-walking-straight/501916 "2022-02-25T00:04:42Z")

</div>

When an enemy AI is walking towards me he jitters for some reason. Here is the video: 2022 02 24 22 17 39 - YouTube I have tried disabling Orient Rotation To Movement in character movement component, but that was alrea…

---

## [How to create a widget inside a behavior tree task?](https://forums.unrealengine.com/t/how-to-create-a-widget-inside-a-behavior-tree-task/501841)

<div class="topic-metadata">

**Author:** [@CrisisCloud7](https://forums.unrealengine.com/u/CrisisCloud7)\
**Replies:** 0\
**Last updated:** [February 24, 2022, 4:43pm UTC](https://forums.unrealengine.com/t/how-to-create-a-widget-inside-a-behavior-tree-task/501841 "2022-02-24T16:43:38Z")

</div>

I am trying to open up a widget in a behavior tree task, but every time I try it keeps saying doesn’t inherit. Any ideas on how to create/open a widget through a task in the behavior tree?

---

## [Unscheduled teleportation occurs when Third Person Characters with AI are walking.](https://forums.unrealengine.com/t/unscheduled-teleportation-occurs-when-third-person-characters-with-ai-are-walking/501631)

<div class="topic-metadata">

**Author:** [@r\_tak](https://forums.unrealengine.com/u/r_tak)\
**Replies:** 0\
**Last updated:** [February 24, 2022, 3:09am UTC](https://forums.unrealengine.com/t/unscheduled-teleportation-occurs-when-third-person-characters-with-ai-are-walking/501631 "2022-02-24T03:09:31Z")

</div>

When multiple Third Person Characters enter a narrow staircase with handrails on both sides, some of the stuck characters may teleport to the air. I am not clear on the conditions under which this occurs, but do you hav…

---

## [Does path exists works in mysterious ways](https://forums.unrealengine.com/t/does-path-exists-works-in-mysterious-ways/270139)

<div class="topic-metadata">

**Author:** [@pauly-bee](https://forums.unrealengine.com/u/pauly-bee)\
**Replies:** 2\
**Last updated:** [February 23, 2022, 11:06am UTC](https://forums.unrealengine.com/t/does-path-exists-works-in-mysterious-ways/270139 "2022-02-23T11:06:35Z")

</div>

Hello, In my game, I have buildings all inherited from the master class BP\_BaseBuilding. From my IA, I do an environment query Does Path Exist to filter which building it could effectively attack: Here is what the Q…

---

## [Problem with Dragging a new Line in BehaviorTree](https://forums.unrealengine.com/t/problem-with-dragging-a-new-line-in-behaviortree/500363)

<div class="topic-metadata">

**Author:** [@BDC\_Patrick](https://forums.unrealengine.com/u/BDC_Patrick)\
**Replies:** 1\
**Last updated:** [February 23, 2022, 10:07am UTC](https://forums.unrealengine.com/t/problem-with-dragging-a-new-line-in-behaviortree/500363 "2022-02-23T10:07:45Z")

</div>

Hi there… I wanted to dive into AI today… got a Tutorial… got an AIController, BehaviorTree and Blackboard… Now… i stuck at the very first thing in the BehaviorTree… I can´t drag a new line (arrow) from the root node……

---

## [Rotating AI Smoothly? Vinterp to doesn't seem to work :S](https://forums.unrealengine.com/t/rotating-ai-smoothly-vinterp-to-doesnt-seem-to-work-s/501172)

<div class="topic-metadata">

**Author:** [@isikdev](https://forums.unrealengine.com/u/isikdev)\
**Replies:** 2\
**Last updated:** [February 23, 2022, 1:14am UTC](https://forums.unrealengine.com/t/rotating-ai-smoothly-vinterp-to-doesnt-seem-to-work-s/501172 "2022-02-23T01:14:44Z")

</div>

Hi fellow UE family, I am trying to achieve a basic rotation before my enemy AI plays an attack animation. Here is what I currently have going: And here is the code I am using for the enemy to rotate before …

---

## [UE4 AI "Detection by Affiliation" System causing problems. Any help?](https://forums.unrealengine.com/t/ue4-ai-detection-by-affiliation-system-causing-problems-any-help/493988)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_6d6724dd](https://forums.unrealengine.com/u/anonymous_user_6d6724dd)\
**Replies:** 2\
**Last updated:** [February 22, 2022, 12:35am UTC](https://forums.unrealengine.com/t/ue4-ai-detection-by-affiliation-system-causing-problems-any-help/493988 "2022-02-22T00:35:53Z")

</div>

Hello everyone. I’ve got a problem. I have an AI that chases and attacks the FirstPersonCharacter player on sight. The problem comes when I have more than one of that AI in a world. It sees the other AI and then calls th…

---

## [Custom Behavior Tree Task Not Working](https://forums.unrealengine.com/t/custom-behavior-tree-task-not-working/500692)

<div class="topic-metadata">

**Author:** [@c\_d\_r\_d](https://forums.unrealengine.com/u/c_d_r_d)\
**Replies:** 1\
**Last updated:** [February 21, 2022, 8:36pm UTC](https://forums.unrealengine.com/t/custom-behavior-tree-task-not-working/500692 "2022-02-21T20:36:54Z")

</div>

I’m creating a basic AI behavior tree right now and the custom task I made isn’t working when I play the level. What I’m trying to do is make a simple ai that moves to a random location in a nav mesh. I made the characte…

---

## [How to change AI behaviour?](https://forums.unrealengine.com/t/how-to-change-ai-behaviour/465723)

<div class="topic-metadata">

**Author:** [@Cypoe](https://forums.unrealengine.com/u/Cypoe)\
**Replies:** 1\
**Last updated:** [February 21, 2022, 12:43am UTC](https://forums.unrealengine.com/t/how-to-change-ai-behaviour/465723 "2022-02-21T00:43:48Z")

</div>

Hello, i hope I get some light on this, because I don’t find any answers. Alsoy sry if this is a trivial question, I’m very new to AI. I want boids, that smash into the ground and change to humanoids when the player g…

---

## [How can I create an AI that follows the player in c++?](https://forums.unrealengine.com/t/how-can-i-create-an-ai-that-follows-the-player-in-c/457931)

<div class="topic-metadata">

**Author:** [@ECTheHunter](https://forums.unrealengine.com/u/ECTheHunter)\
**Replies:** 1\
**Last updated:** [February 21, 2022, 12:33am UTC](https://forums.unrealengine.com/t/how-can-i-create-an-ai-that-follows-the-player-in-c/457931 "2022-02-21T00:33:12Z")

</div>

I just want the enemy to chase the player.

---

## [AI manager](https://forums.unrealengine.com/t/ai-manager/449371)

<div class="topic-metadata">

**Author:** [@knijka1994](https://forums.unrealengine.com/u/knijka1994)\
**Replies:** 1\
**Last updated:** [February 21, 2022, 12:27am UTC](https://forums.unrealengine.com/t/ai-manager/449371 "2022-02-21T00:27:59Z")

</div>

Hello everyone! I am asking you to coordinate me in solving this problem: I have some AIs that are working under the same AIController. I need to create a single “brain” for the copies of AIController (that are created…

---

## [Enemy AI Pushes and Launches Each Other When in Pack](https://forums.unrealengine.com/t/enemy-ai-pushes-and-launches-each-other-when-in-pack/442439)

<div class="topic-metadata">

**Author:** [@cashnastymike](https://forums.unrealengine.com/u/cashnastymike)\
**Replies:** 1\
**Last updated:** [February 21, 2022, 12:23am UTC](https://forums.unrealengine.com/t/enemy-ai-pushes-and-launches-each-other-when-in-pack/442439 "2022-02-21T00:23:22Z")

</div>

I’m creating a game with zombie type enemies which rush straight at the player in waves. The AI has been programmed to do nothing but to run straight to the player and attack when in range. However, the AI gets too close…

---

## [Passing Vector Variable From Player To AI](https://forums.unrealengine.com/t/passing-vector-variable-from-player-to-ai/499305)

<div class="topic-metadata">

**Author:** [@OdyseeGames](https://forums.unrealengine.com/u/OdyseeGames)\
**Replies:** 3\
**Last updated:** [February 19, 2022, 8:55pm UTC](https://forums.unrealengine.com/t/passing-vector-variable-from-player-to-ai/499305 "2022-02-19T20:55:30Z")

</div>

BLUF: I am trying to have my first person player, press a button and cast a line trace and have my AI character move to that point. I am unable to pass that vector variable from my player to my AI. Any ideas? Here is h…

---

## [How do I make my AI walk not run](https://forums.unrealengine.com/t/how-do-i-make-my-ai-walk-not-run/426774)

<div class="topic-metadata">

**Author:** [@Ma9net](https://forums.unrealengine.com/u/Ma9net)\
**Replies:** 4\
**Last updated:** [February 18, 2022, 2:24am UTC](https://forums.unrealengine.com/t/how-do-i-make-my-ai-walk-not-run/426774 "2022-02-18T02:24:29Z")

</div>

Hi Team! before I get started id like to note that I did do a fair bit of searching around before I came here to ask this question so if it’s something super simple, please, be gentle. I have my AI doing pretty much e…

---

## [How to stack or set priority to area classes / nav modifiers](https://forums.unrealengine.com/t/how-to-stack-or-set-priority-to-area-classes-nav-modifiers/499193)

<div class="topic-metadata">

**Author:** [@lordlolek](https://forums.unrealengine.com/u/lordlolek)\
**Replies:** 1\
**Last updated:** [February 17, 2022, 4:29pm UTC](https://forums.unrealengine.com/t/how-to-stack-or-set-priority-to-area-classes-nav-modifiers/499193 "2022-02-17T16:29:06Z")

</div>

Hi, I have a custom area class (let’s call it Wall) which is walkable for an AI but only if it meets the certain condition, otherwise I set nav filter to not walk trough it - this part works. The problem is -I have a s…

---

## [Teleportation on Event Tick destroys the actor](https://forums.unrealengine.com/t/teleportation-on-event-tick-destroys-the-actor/497922)

<div class="topic-metadata">

**Author:** [@aallfik11](https://forums.unrealengine.com/u/aallfik11)\
**Replies:** 2\
**Last updated:** [February 14, 2022, 11:47pm UTC](https://forums.unrealengine.com/t/teleportation-on-event-tick-destroys-the-actor/497922 "2022-02-14T23:47:11Z")

</div>

I’m very new to the engine, so as a way to learn I decided to make a clone of Slender. I’ve set the AI On Event Tick to check if the enemy is withing a certain distance from the player, and if it isn’t, I run an EQS quer…

---

## [Help Wanted: AI Behaviors](https://forums.unrealengine.com/t/help-wanted-ai-behaviors/495423)

<div class="topic-metadata">

**Author:** [@Mike-Hardy](https://forums.unrealengine.com/u/Mike-Hardy)\
**Replies:** 4\
**Last updated:** [February 14, 2022, 7:32pm UTC](https://forums.unrealengine.com/t/help-wanted-ai-behaviors/495423 "2022-02-14T19:32:45Z")

</div>

My AI characters use splines and I want to set a wait time per spline point, and while they wait play a random generic animation. I think I just need a bit of help with the spline path track actor and BT task, I just can…

---

## [How to make AI pick up another small-scale animated AI](https://forums.unrealengine.com/t/how-to-make-ai-pick-up-another-small-scale-animated-ai/493477)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_d2d9def2](https://forums.unrealengine.com/u/anonymous_user_d2d9def2)\
**Replies:** 2\
**Last updated:** [February 14, 2022, 4:33pm UTC](https://forums.unrealengine.com/t/how-to-make-ai-pick-up-another-small-scale-animated-ai/493477 "2022-02-14T16:33:46Z")

</div>

Hello, I am new to Unreal and I would appreciate an advice for the following scenario. I use unreal (4-27) I have a monster AI wondering the level and performing different animations depending on his environment using …

---

## [Behavior tree issue (Switching from tick to receive start)](https://forums.unrealengine.com/t/behavior-tree-issue-switching-from-tick-to-receive-start/497913)

<div class="topic-metadata">

**Author:** [@8DrunkenGods](https://forums.unrealengine.com/u/8DrunkenGods)\
**Replies:** 1\
**Last updated:** [February 14, 2022, 2:37pm UTC](https://forums.unrealengine.com/t/behavior-tree-issue-switching-from-tick-to-receive-start/497913 "2022-02-14T14:37:55Z")

</div>

(4.26) I seem to be having an issue in my behavior tree. If i leave it back to how it was before i changed it from receive tick, everything works as it should but there’s a lot of ticks that i don’t want or need. If i c…

---

## [Get Controlled Pawn not valid in persistent level but works well in a sub-level](https://forums.unrealengine.com/t/get-controlled-pawn-not-valid-in-persistent-level-but-works-well-in-a-sub-level/497574)

<div class="topic-metadata">

**Author:** [@rman1121](https://forums.unrealengine.com/u/rman1121)\
**Replies:** 0\
**Last updated:** [February 13, 2022, 2:10pm UTC](https://forums.unrealengine.com/t/get-controlled-pawn-not-valid-in-persistent-level-but-works-well-in-a-sub-level/497574 "2022-02-13T14:10:31Z")

</div>

I am currently struggling to get my AI controller cast to my NPC BP class working inside the persistent level using a “get controlled pawn” as the cast object. This works well if I launch the actual level this is built i…

---

## [How to check if location is valid for AI](https://forums.unrealengine.com/t/how-to-check-if-location-is-valid-for-ai/428322)

<div class="topic-metadata">

**Author:** [@TetraStudiosDev](https://forums.unrealengine.com/u/TetraStudiosDev)\
**Replies:** 15\
**Last updated:** [February 12, 2022, 10:12pm UTC](https://forums.unrealengine.com/t/how-to-check-if-location-is-valid-for-ai/428322 "2022-02-12T22:12:21Z")

</div>

Hello! I was wondering if anyone knew how to check if a place if valid for AI to go to. I am making a battle royale mode, and the circle needs to randomly spawn on the map and the AI need to be able to go there. I have …

---

## [Decarator is not aborting a task. No idea why (((](https://forums.unrealengine.com/t/decarator-is-not-aborting-a-task-no-idea-why/497336)

<div class="topic-metadata">

**Author:** [@MESHOCK\_GAMES](https://forums.unrealengine.com/u/MESHOCK_GAMES)\
**Replies:** 0\
**Last updated:** [February 12, 2022, 6:46pm UTC](https://forums.unrealengine.com/t/decarator-is-not-aborting-a-task-no-idea-why/497336 "2022-02-12T18:46:29Z")

</div>

I have a bool in my blackboard called “IsInCombatMode”. When an AI kills the player, the BT task “UnequipWeapon” is called. In this task the bool changes to false. so… it is not working, i mean, the bool is changing and …

---

## [AI\_controller behave strange when is not in line of sight ( outside of screen)](https://forums.unrealengine.com/t/ai-controller-behave-strange-when-is-not-in-line-of-sight-outside-of-screen/497010)

<div class="topic-metadata">

**Author:** [@qewer66](https://forums.unrealengine.com/u/qewer66)\
**Replies:** 1\
**Last updated:** [February 12, 2022, 6:42pm UTC](https://forums.unrealengine.com/t/ai-controller-behave-strange-when-is-not-in-line-of-sight-outside-of-screen/497010 "2022-02-12T18:42:56Z")

</div>

Hi, I am working on my first game ( formula/ racing manager), I already have some kind of AI with blueprints, nothing extra fancy, but it works just fine. I created children of that AI, and each AI child posses only o…

---

## [AI bouncing/jumping](https://forums.unrealengine.com/t/ai-bouncing-jumping/497111)

<div class="topic-metadata">

**Author:** [@The\_NL](https://forums.unrealengine.com/u/The_NL)\
**Replies:** 1\
**Last updated:** [February 12, 2022, 12:41pm UTC](https://forums.unrealengine.com/t/ai-bouncing-jumping/497111 "2022-02-12T12:41:56Z")

</div>

My enemy AI is jumping away from me, like bouncing when the main character is too close to him. I searched for a solution on internet but it didn’t work in my case. I set Can character step on to yes, i tried adding anot…

---

## [AI Detecting Non player Actors with TAG](https://forums.unrealengine.com/t/ai-detecting-non-player-actors-with-tag/496825)

<div class="topic-metadata">

**Author:** [@BaseReality](https://forums.unrealengine.com/u/BaseReality)\
**Replies:** 0\
**Last updated:** [February 11, 2022, 7:39am UTC](https://forums.unrealengine.com/t/ai-detecting-non-player-actors-with-tag/496825 "2022-02-11T07:39:30Z")

</div>

How and why does AI not detect a Actor with a tag. Im trying to have the AI see pickup objects And filter by Tag. But if I filter by Tag The objects are never spotted?

---

## [Move To task crashes the editor](https://forums.unrealengine.com/t/move-to-task-crashes-the-editor/496659)

<div class="topic-metadata">

**Author:** [@Sealex12Capsul](https://forums.unrealengine.com/u/Sealex12Capsul)\
**Replies:** 0\
**Last updated:** [February 10, 2022, 6:52pm UTC](https://forums.unrealengine.com/t/move-to-task-crashes-the-editor/496659 "2022-02-10T18:52:03Z")

</div>

My Behavior Tree has a Move To task with the FVector blackboard key, but the editor crashes when this node is started. I have tried adding a decorator, but even with a valid FVector key Move To causes the editor to crash…

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

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