# AI

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

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

**Page:** 81

---

## [AI controller on PlayerChar for Auto Attack](https://forums.unrealengine.com/t/ai-controller-on-playerchar-for-auto-attack/447552)

<div class="topic-metadata">

**Author:** [@JeppeTarp](https://forums.unrealengine.com/u/JeppeTarp)\
**Replies:** 0\
**Last updated:** [April 20, 2019, 7:17pm UTC](https://forums.unrealengine.com/t/ai-controller-on-playerchar-for-auto-attack/447552 "2019-04-20T19:17:05Z")

</div>

Hi, I’m looking for the easiest way to achieve the following; On input action “Attack” the AI takes over the PlayerCharacter, finds nearest actor of “enemy” type, issue a move to actor command and attack actor… Later d…

---

## [AI can't detect navigation mesh. How to fix?](https://forums.unrealengine.com/t/ai-cant-detect-navigation-mesh-how-to-fix/447531)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_5c64678d](https://forums.unrealengine.com/u/anonymous_user_5c64678d)\
**Replies:** 10\
**Last updated:** [April 20, 2019, 7:01pm UTC](https://forums.unrealengine.com/t/ai-cant-detect-navigation-mesh-how-to-fix/447531 "2019-04-20T19:01:44Z")

</div>

Hi! I have a problem with AI navigation (before reinstalling engine all was good). In editor NavMesh look normal, but in debug Bot didn’t show any “green”. As a result Bot even can’t simple move to location. загрузк…

---

## [Local Multiplayer AI ignore summoner](https://forums.unrealengine.com/t/local-multiplayer-ai-ignore-summoner/447472)

<div class="topic-metadata">

**Author:** [@AKA\_The\_Boss](https://forums.unrealengine.com/u/AKA_The_Boss)\
**Replies:** 0\
**Last updated:** [April 18, 2019, 11:17pm UTC](https://forums.unrealengine.com/t/local-multiplayer-ai-ignore-summoner/447472 "2019-04-18T23:17:27Z")

</div>

Hello all, I’m trying to develop a death match local multiplayer game. One of the weapon is spawning an AI that should go to the nearest player and attack him. My question is: How to let that AI ignore the owner (shoot…

---

## [Setting AI Team Perception (Friendly, Neutral...)](https://forums.unrealengine.com/t/setting-ai-team-perception-friendly-neutral/447333)

<div class="topic-metadata">

**Author:** [@Osmose\_ben](https://forums.unrealengine.com/u/Osmose_ben)\
**Replies:** 0\
**Last updated:** [April 16, 2019, 11:59am UTC](https://forums.unrealengine.com/t/setting-ai-team-perception-friendly-neutral/447333 "2019-04-16T11:59:19Z")

</div>

Hey everyone, I’m facing a problem with AI Perception, I am working on a RTS and want my AI Perception only detect “enemies”. It appear that Unreal Engine can’t do that in blueprint? I Think this is possible in C++ b…

---

## [My AI is acting weird](https://forums.unrealengine.com/t/my-ai-is-acting-weird/447294)

<div class="topic-metadata">

**Author:** [@zestyparsnip](https://forums.unrealengine.com/u/zestyparsnip)\
**Replies:** 1\
**Last updated:** [April 15, 2019, 9:51pm UTC](https://forums.unrealengine.com/t/my-ai-is-acting-weird/447294 "2019-04-15T21:51:16Z")

</div>

Hiya, somewhat of a novice so bear with me please if there are some parts I do not understand. So, I essentially followed an old tutorial by Matthew Palaje one creating basic enemies in UE4, most of which shoot proje…

---

## [Why doesn't my AI character move?](https://forums.unrealengine.com/t/why-doesnt-my-ai-character-move/289898)

<div class="topic-metadata">

**Author:** [@Alexarg](https://forums.unrealengine.com/u/Alexarg)\
**Replies:** 9\
**Last updated:** [April 14, 2019, 7:36pm UTC](https://forums.unrealengine.com/t/why-doesnt-my-ai-character-move/289898 "2019-04-14T19:36:48Z")

</div>

I’m trying to move a AICaracter. I’m testing with this tutorial: or this one (post nr 5 ) But I cant make my AI move. The only difference I see between what is explained in the tutorials and what I have is: When…

---

## [C++ Decorator for AI Behavior Tree doesn't work](https://forums.unrealengine.com/t/c-decorator-for-ai-behavior-tree-doesnt-work/447230)

<div class="topic-metadata">

**Author:** [@ZhenZhongLuo](https://forums.unrealengine.com/u/ZhenZhongLuo)\
**Replies:** 0\
**Last updated:** [April 14, 2019, 5:24pm UTC](https://forums.unrealengine.com/t/c-decorator-for-ai-behavior-tree-doesnt-work/447230 "2019-04-14T17:24:11Z")

</div>

Hi, Epic Community, I recently tried to implement a Decorator for my AI Behavior Tree using C++, so I started at the very simple step, which was to check if the Decorator first by printing out a message onto the screen.…

---

## [How to get Blackboard Value from Query Owner?](https://forums.unrealengine.com/t/how-to-get-blackboard-value-from-query-owner/447173)

<div class="topic-metadata">

**Author:** [@Glomby](https://forums.unrealengine.com/u/Glomby)\
**Replies:** 1\
**Last updated:** [April 14, 2019, 4:15pm UTC](https://forums.unrealengine.com/t/how-to-get-blackboard-value-from-query-owner/447173 "2019-04-14T16:15:40Z")

</div>

Hi, I’m completely new to programming with C++ in UE4 but since I need a lot of AI I can’t just do everything in Blueprints. So I’m using the Environment Query System to get Actors of a specific Class but I need to per…

---

## [How do I create an AI/NPC that does NOT attack](https://forums.unrealengine.com/t/how-do-i-create-an-ai-npc-that-does-not-attack/447202)

<div class="topic-metadata">

**Author:** [@SpinelessWonder](https://forums.unrealengine.com/u/SpinelessWonder)\
**Replies:** 0\
**Last updated:** [April 14, 2019, 2:39am UTC](https://forums.unrealengine.com/t/how-do-i-create-an-ai-npc-that-does-not-attack/447202 "2019-04-14T02:39:00Z")

</div>

I want to create an AI/NPC that will walk through a door and sit at a chair. I don’t want this AI/NPC to be aggressive at all, I already have the door, the trigger AND the Chair set up. Bonus, I also want to make it ge…

---

## [Spawned AI Enemy does not behave normally](https://forums.unrealengine.com/t/spawned-ai-enemy-does-not-behave-normally/305666)

<div class="topic-metadata">

**Author:** [@Blue669](https://forums.unrealengine.com/u/Blue669)\
**Replies:** 3\
**Last updated:** [April 12, 2019, 1:20pm UTC](https://forums.unrealengine.com/t/spawned-ai-enemy-does-not-behave-normally/305666 "2019-04-12T13:20:11Z")

</div>

I’ve made an AI Enemy and a Behaviour Tree and when I place one or several of these AI Enemies inside the level, it works perfectly. However if I spawn AI Enemies via Blueprint, it seems that the Behaviour Tree does not…

---

## [AiMoveTO unsafe to call from a class?](https://forums.unrealengine.com/t/aimoveto-unsafe-to-call-from-a-class/446873)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_10303e31](https://forums.unrealengine.com/u/anonymous_user_10303e31)\
**Replies:** 0\
**Last updated:** [April 8, 2019, 8:08pm UTC](https://forums.unrealengine.com/t/aimoveto-unsafe-to-call-from-a-class/446873 "2019-04-08T20:08:13Z")

</div>

Hello Folks, I am currently desgigning a RTS like game, and I’m kinda facing an issue. I want to use the node AI move to in an blueprint class that is not a character (a class that drive the orders gave to the units). …

---

## [AI perception: Pawn never loses sight](https://forums.unrealengine.com/t/ai-perception-pawn-never-loses-sight/421583)

<div class="topic-metadata">

**Author:** [@zaha](https://forums.unrealengine.com/u/zaha)\
**Replies:** 3\
**Last updated:** [April 7, 2019, 6:17pm UTC](https://forums.unrealengine.com/t/ai-perception-pawn-never-loses-sight/421583 "2019-04-07T18:17:07Z")

</div>

Hey everyone, I think I found a bug with the AI Perception system. I have an AI Pawn set up to use sight. When leaving the outer lose sight radius, my perception isn’t updated to inform my AI Controller that the sight h…

---

## [Error C2664: Cannot convert argument 1 from 'const TWeakObjectPtr'](https://forums.unrealengine.com/t/error-c2664-cannot-convert-argument-1-from-const-tweakobjectptr/446766)

<div class="topic-metadata">

**Author:** [@yMatinho](https://forums.unrealengine.com/u/yMatinho)\
**Replies:** 2\
**Last updated:** [April 7, 2019, 1:34am UTC](https://forums.unrealengine.com/t/error-c2664-cannot-convert-argument-1-from-const-tweakobjectptr/446766 "2019-04-07T01:34:54Z")

</div>

Hello everyone, I am a beginner in c ++ in eu4 and I am reading the book ‘Mastering Unreal Engine 4’ and I found a problem. When I write the AI ​​code, at the time of compiling these errors appear: \*EnemyAIController.cpp…

---

## [Streaming Level Tiles with Nav Mesh](https://forums.unrealengine.com/t/streaming-level-tiles-with-nav-mesh/435274)

<div class="topic-metadata">

**Author:** [@troydSPAMBOT3000](https://forums.unrealengine.com/u/troydSPAMBOT3000)\
**Replies:** 4\
**Last updated:** [April 6, 2019, 12:21am UTC](https://forums.unrealengine.com/t/streaming-level-tiles-with-nav-mesh/435274 "2019-04-06T00:21:13Z")

</div>

Hi all, I have a problem. I have created a series of sublevels I spawn procedurally at runtime to create a large grid world. These sublevels are modular, and are instanced many times at different positions and rotation…

---

## [Float precision error in C++](https://forums.unrealengine.com/t/float-precision-error-in-c/445138)

<div class="topic-metadata">

**Author:** [@amusei1](https://forums.unrealengine.com/u/amusei1)\
**Replies:** 1\
**Last updated:** [April 5, 2019, 2:41am UTC](https://forums.unrealengine.com/t/float-precision-error-in-c/445138 "2019-04-05T02:41:51Z")

</div>

Hello, I have a problem when doing math with floats - it seems like brackets change the output, even when they shouldn’t. For example: MaxHealth = 100.0, percentToAdd = 10.0 This equation will result in 10.0, as it s…

---

## [AI perception vertical FOV](https://forums.unrealengine.com/t/ai-perception-vertical-fov/420590)

<div class="topic-metadata">

**Author:** [@samuel.schimmel](https://forums.unrealengine.com/u/samuel.schimmel)\
**Replies:** 1\
**Last updated:** [April 4, 2019, 5:29am UTC](https://forums.unrealengine.com/t/ai-perception-vertical-fov/420590 "2019-04-04T05:29:23Z")

</div>

How do I set the AI’s vertical field of view? I’m using UAISenseConfig\_Sight::PeripheralVisionAngleDegrees to set their horizontal FOV, but I can’t figure out how to set their vertical FOV (i.e., to prevent the AI from s…

---

## [AI agents destination confusion](https://forums.unrealengine.com/t/ai-agents-destination-confusion/446421)

<div class="topic-metadata">

**Author:** [@aabun](https://forums.unrealengine.com/u/aabun)\
**Replies:** 1\
**Last updated:** [April 2, 2019, 7:48pm UTC](https://forums.unrealengine.com/t/ai-agents-destination-confusion/446421 "2019-04-02T19:48:52Z")

</div>

My AI agents think that they reach their destination that is actually above their head, but in the same spot from the top view. The Nav Map allows them access to both spots. Question: what is the role of the radius o…

---

## [EQS decorator, Check if current query score = 0?](https://forums.unrealengine.com/t/eqs-decorator-check-if-current-query-score-0/443715)

<div class="topic-metadata">

**Author:** [@dinasorZ](https://forums.unrealengine.com/u/dinasorZ)\
**Replies:** 1\
**Last updated:** [April 2, 2019, 8:16am UTC](https://forums.unrealengine.com/t/eqs-decorator-check-if-current-query-score-0/443715 "2019-04-02T08:16:11Z")

</div>

Hello, I want the AI to Move To another cover only if there current cover query score = 0 (Blue). So, is there a decorator or branch that can be created to set up the logic of that? "If current EQS score = 0, then MoveT…

---

## [When my AI sees the player, the behavior tree only calls to one decorator](https://forums.unrealengine.com/t/when-my-ai-sees-the-player-the-behavior-tree-only-calls-to-one-decorator/443967)

<div class="topic-metadata">

**Author:** [@ReallySaltyPeps](https://forums.unrealengine.com/u/ReallySaltyPeps)\
**Replies:** 1\
**Last updated:** [April 2, 2019, 7:39am UTC](https://forums.unrealengine.com/t/when-my-ai-sees-the-player-the-behavior-tree-only-calls-to-one-decorator/443967 "2019-04-02T07:39:34Z")

</div>

I have a behavior tree that has 4 decorators. The AI simply moves around idly. AI gets distracted by a lamp if it’s bright enough A harmless AI follows the player if they see him A hostile AI follows and attacks the pl…

---

## [Parallel BT Doesn't Work](https://forums.unrealengine.com/t/parallel-bt-doesnt-work/446410)

<div class="topic-metadata">

**Author:** [@bogdanspbm](https://forums.unrealengine.com/u/bogdanspbm)\
**Replies:** 0\
**Last updated:** [April 1, 2019, 7:42pm UTC](https://forums.unrealengine.com/t/parallel-bt-doesnt-work/446410 "2019-04-01T19:42:30Z")

</div>

I tried to finish execute immediately and after goal target and in both cases second branch doesn’t start. How to fix it?

---

## [Blueprint AI Move To aborted](https://forums.unrealengine.com/t/blueprint-ai-move-to-aborted/422106)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_4fc353b4](https://forums.unrealengine.com/u/anonymous_user_4fc353b4)\
**Replies:** 4\
**Last updated:** [April 1, 2019, 2:32pm UTC](https://forums.unrealengine.com/t/blueprint-ai-move-to-aborted/422106 "2019-04-01T14:32:43Z")

</div>

Hello. I looked all over the internet and here, but I could not find what I am missing. I am trying to create a simple AI that patrols between two target points. I am trying to do this in Blueprint with AI Move To node…

---

## [How to make AI stop chasing player when player sees AI](https://forums.unrealengine.com/t/how-to-make-ai-stop-chasing-player-when-player-sees-ai/428054)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_f38c08f4](https://forums.unrealengine.com/u/anonymous_user_f38c08f4)\
**Replies:** 1\
**Last updated:** [April 1, 2019, 9:17am UTC](https://forums.unrealengine.com/t/how-to-make-ai-stop-chasing-player-when-player-sees-ai/428054 "2019-04-01T09:17:30Z")

</div>

I will post a screenshot of my current blueprints soon. It seems straightforward enough, but I don’t have enough experience to allow this process to happen. Just a point in the right direction would be very helpful and …

---

## [Dead Zone chase for endless runner?](https://forums.unrealengine.com/t/dead-zone-chase-for-endless-runner/446200)

<div class="topic-metadata">

**Author:** [@Gdojjo](https://forums.unrealengine.com/u/Gdojjo)\
**Replies:** 4\
**Last updated:** [March 30, 2019, 9:36pm UTC](https://forums.unrealengine.com/t/dead-zone-chase-for-endless-runner/446200 "2019-03-30T21:36:54Z")

</div>

Hello guys i think this question written in the past :confused: but i cannot find solution for my problem… Im trying make endless runner project normally im make a wall chase my player with projectile movement …so ever…

---

## [How to break Wait in Behaivior Tree?](https://forums.unrealengine.com/t/how-to-break-wait-in-behaivior-tree/446230)

<div class="topic-metadata">

**Author:** [@bogdanspbm](https://forums.unrealengine.com/u/bogdanspbm)\
**Replies:** 2\
**Last updated:** [March 29, 2019, 3:54pm UTC](https://forums.unrealengine.com/t/how-to-break-wait-in-behaivior-tree/446230 "2019-03-29T15:54:52Z")

</div>

I have wait Task in BT and i need to stop it if my Boolean Var Is True. How to do this?

---

## [Strange AI Problem](https://forums.unrealengine.com/t/strange-ai-problem/446075)

<div class="topic-metadata">

**Author:** [@VenomStyx](https://forums.unrealengine.com/u/VenomStyx)\
**Replies:** 2\
**Last updated:** [March 29, 2019, 10:10am UTC](https://forums.unrealengine.com/t/strange-ai-problem/446075 "2019-03-29T10:10:00Z")

</div>

I’m setting a value inside of the blackboard to a string, and I have a decorator check to make sure it’s a specific value. If so, it runs a set of instructions. The goal is supposed to switch to another set of instructi…

---

## [AI seems to not replicate (Does not work in multiplayer)](https://forums.unrealengine.com/t/ai-seems-to-not-replicate-does-not-work-in-multiplayer/391613)

<div class="topic-metadata">

**Author:** [@durkaderk](https://forums.unrealengine.com/u/durkaderk)\
**Replies:** 14\
**Last updated:** [March 29, 2019, 3:05am UTC](https://forums.unrealengine.com/t/ai-seems-to-not-replicate-does-not-work-in-multiplayer/391613 "2019-03-29T03:05:22Z")

</div>

I am trying to make AI work in multiplayer if there is a way to ensure it running on the server that would be great. My character and controller are connected and some features do work, i have found that the ai charact…

---

## [Problm with my Actor](https://forums.unrealengine.com/t/problm-with-my-actor/446065)

<div class="topic-metadata">

**Author:** [@Etiboogi](https://forums.unrealengine.com/u/Etiboogi)\
**Replies:** 5\
**Last updated:** [March 29, 2019, 1:23am UTC](https://forums.unrealengine.com/t/problm-with-my-actor/446065 "2019-03-29T01:23:41Z")

</div>

I was working on my project and I realized that my AI did not move (with the IA move to). I try many ways to solve the problem but I find nothing.I do not find the problem (I work in blueprint) If you want more informa…

---

## [Help me ! Problem AI not moving](https://forums.unrealengine.com/t/help-me-problem-ai-not-moving/446204)

<div class="topic-metadata">

**Author:** [@Etiboogi](https://forums.unrealengine.com/u/Etiboogi)\
**Replies:** 1\
**Last updated:** [March 29, 2019, 12:08am UTC](https://forums.unrealengine.com/t/help-me-problem-ai-not-moving/446204 "2019-03-29T00:08:44Z")

</div>

I was working on my project and I realized that my AI did not move (with the IA move to)(a week ago my script worked well and now it does not move anymore). I try many ways to solve the problem but I find nothing : I hav…

---

## [Problem with IA](https://forums.unrealengine.com/t/problem-with-ia/446188)

<div class="topic-metadata">

**Author:** [@Etiboogi](https://forums.unrealengine.com/u/Etiboogi)\
**Replies:** 0\
**Last updated:** [March 28, 2019, 9:07pm UTC](https://forums.unrealengine.com/t/problem-with-ia/446188 "2019-03-28T21:07:55Z")

</div>

I was working on my project and I realized that my AI did not move (with the IA move to)(a week ago my script worked well and now it does not move anymore). I try many ways to solve the problem but I find nothing : I hav…

---

## [AI Controllers dont start](https://forums.unrealengine.com/t/ai-controllers-dont-start/446171)

<div class="topic-metadata">

**Author:** [@XxsundaexX10](https://forums.unrealengine.com/u/XxsundaexX10)\
**Replies:** 9\
**Last updated:** [March 28, 2019, 3:47pm UTC](https://forums.unrealengine.com/t/ai-controllers-dont-start/446171 "2019-03-28T15:47:00Z")

</div>

Hey, heads up, I’m still learning the ropes. I have encountered a problem today in my game after I created a main menu level and screen; The screen just lets the player click a button to start the main level I have been…

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

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