# AI

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

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

**Page:** 100

---

## [How do I Switch from a Player Controller to an AI Controller?](https://forums.unrealengine.com/t/how-do-i-switch-from-a-player-controller-to-an-ai-controller/378736)

<div class="topic-metadata">

**Author:** [@renderman09](https://forums.unrealengine.com/u/renderman09)\
**Replies:** 3\
**Last updated:** [February 25, 2018, 7:41am UTC](https://forums.unrealengine.com/t/how-do-i-switch-from-a-player-controller-to-an-ai-controller/378736 "2018-02-25T07:41:03Z")

</div>

I’m currently working on a feature where the player can switch between 4 different characters that are running AI controllers. Switching to the AI controller and possessing it to take control works fine, but I can’t seem…

---

## [RVO causes AI walk animation weird](https://forums.unrealengine.com/t/rvo-causes-ai-walk-animation-weird/399708)

<div class="topic-metadata">

**Author:** [@Tsan](https://forums.unrealengine.com/u/Tsan)\
**Replies:** 2\
**Last updated:** [February 24, 2018, 7:57am UTC](https://forums.unrealengine.com/t/rvo-causes-ai-walk-animation-weird/399708 "2018-02-24T07:57:46Z")

</div>

For example an AI is avoiding another so it is moving to the right and forward at the same time, but the animation shows moving forward only. So he is kind of like “shifting to the right”. I already checked “Orient Rotat…

---

## [Best Way To Spawn a New Pawn with Specific Controller in C++?](https://forums.unrealengine.com/t/best-way-to-spawn-a-new-pawn-with-specific-controller-in-c/417896)

<div class="topic-metadata">

**Author:** [@GamingByNumbers](https://forums.unrealengine.com/u/GamingByNumbers)\
**Replies:** 2\
**Last updated:** [February 23, 2018, 2:08am UTC](https://forums.unrealengine.com/t/best-way-to-spawn-a-new-pawn-with-specific-controller-in-c/417896 "2018-02-23T02:08:09Z")

</div>

What is the best way to spawn a new pawn with a specific controller in C++? Here’s what I’m doing: APawn\* NewPawn = ()-\>SpawnActor\<APawn\>(); NewPawn-\>AIControllerClass = AIsisAIControllerRandom::StaticClass(); NewPawn-\>…

---

## [Basic Behavior Tree help needed: Aborting tasks upon fulfilled condition](https://forums.unrealengine.com/t/basic-behavior-tree-help-needed-aborting-tasks-upon-fulfilled-condition/418055)

<div class="topic-metadata">

**Author:** [@MrPikPik](https://forums.unrealengine.com/u/MrPikPik)\
**Replies:** 0\
**Last updated:** [February 22, 2018, 2:37pm UTC](https://forums.unrealengine.com/t/basic-behavior-tree-help-needed-aborting-tasks-upon-fulfilled-condition/418055 "2018-02-22T14:37:42Z")

</div>

Hey hey, I need some help with AI Behavior Trees, specifically, I want the AI to randomly select points on the map and go there (task for this is done and works), but if the AI sees the player (ConeCheck), it stops goin…

---

## [Making a moveTo task that updates location](https://forums.unrealengine.com/t/making-a-moveto-task-that-updates-location/417944)

<div class="topic-metadata">

**Author:** [@Sir\_Beerington](https://forums.unrealengine.com/u/Sir_Beerington)\
**Replies:** 4\
**Last updated:** [February 22, 2018, 1:27pm UTC](https://forums.unrealengine.com/t/making-a-moveto-task-that-updates-location/417944 "2018-02-22T13:27:48Z")

</div>

I am using a Blackboard key to store a Vector that my Pawn is supposed to move to through the Behavior Tree, but when I add a new location the pawn moves to the first location first and only then continues towards the ne…

---

## [How to make an AI go back to its original location?](https://forums.unrealengine.com/t/how-to-make-an-ai-go-back-to-its-original-location/417757)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_0160c155](https://forums.unrealengine.com/u/anonymous_user_0160c155)\
**Replies:** 1\
**Last updated:** [February 22, 2018, 8:12am UTC](https://forums.unrealengine.com/t/how-to-make-an-ai-go-back-to-its-original-location/417757 "2018-02-22T08:12:13Z")

</div>

Hi ! I managed to create an IA witch is following you into it’s “moveable zone” if it’s seeing you. So, when I’m near the “ennemy” he starts following me. If I go out of his “moveable zone” the ennemy is going back to i…

---

## [4.10 Nav Invokers](https://forums.unrealengine.com/t/4-10-nav-invokers/341337)

<div class="topic-metadata">

**Author:** [@purezy](https://forums.unrealengine.com/u/purezy)\
**Replies:** 5\
**Last updated:** [February 21, 2018, 3:33pm UTC](https://forums.unrealengine.com/t/4-10-nav-invokers/341337 "2018-02-21T15:33:23Z")

</div>

I wanted to double check and see if anything has changed in 4.10 on how to setup nav invokers properly. I’ve been following other forum threads and answerhub posts I can find but can’t seem to get my invokers working. T…

---

## [Environment Query: Chaining Queries?](https://forums.unrealengine.com/t/environment-query-chaining-queries/417834)

<div class="topic-metadata">

**Author:** [@veheluuk](https://forums.unrealengine.com/u/veheluuk)\
**Replies:** 0\
**Last updated:** [February 20, 2018, 11:17am UTC](https://forums.unrealengine.com/t/environment-query-chaining-queries/417834 "2018-02-20T11:17:30Z")

</div>

What is the intended workflow of using Environment Query System to query and generate grids around other actors (i.e. not around the querier)? If the grid is generated around the querier this is easy as you can simply u…

---

## [Setting Nav Area Cost to Zero Freezes Game](https://forums.unrealengine.com/t/setting-nav-area-cost-to-zero-freezes-game/417733)

<div class="topic-metadata">

**Author:** [@wilberolive](https://forums.unrealengine.com/u/wilberolive)\
**Replies:** 2\
**Last updated:** [February 19, 2018, 9:51pm UTC](https://forums.unrealengine.com/t/setting-nav-area-cost-to-zero-freezes-game/417733 "2018-02-19T21:51:14Z")

</div>

Create a custom Nav Area and set its Default Cost to 0.0. Then add that nav area to your map and create a simple AI agent to randomly walk around the map for example. As soon as you click Play, the entire game (and edito…

---

## ['Move to' not working when passes through dead player position](https://forums.unrealengine.com/t/move-to-not-working-when-passes-through-dead-player-position/417638)

<div class="topic-metadata">

**Author:** [@sanjithkanagavel](https://forums.unrealengine.com/u/sanjithkanagavel)\
**Replies:** 3\
**Last updated:** [February 18, 2018, 6:33pm UTC](https://forums.unrealengine.com/t/move-to-not-working-when-passes-through-dead-player-position/417638 "2018-02-18T18:33:20Z")

</div>

Hi have EQS system and player moves examining the best object near by. But when he encounters a enemy before him. He fires at him and kills him. But the problem is after killing the enemy the player tries to move to bes…

---

## [Avoid dynamic navigation (bad fps)](https://forums.unrealengine.com/t/avoid-dynamic-navigation-bad-fps/417668)

<div class="topic-metadata">

**Author:** [@DavidM](https://forums.unrealengine.com/u/DavidM)\
**Replies:** 1\
**Last updated:** [February 18, 2018, 4:48pm UTC](https://forums.unrealengine.com/t/avoid-dynamic-navigation-bad-fps/417668 "2018-02-18T16:48:17Z")

</div>

Is there a way to use a precomputed/static navigation instead of the dynamic nav meshes? My FPS nearly doubles when I remove the nav meshes. It’s a rather big and complex map and it’s not worth it being dynamic. I miss…

---

## [C++ Equivalent of MoveTo node](https://forums.unrealengine.com/t/c-equivalent-of-moveto-node/417677)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_3f563752](https://forums.unrealengine.com/u/anonymous_user_3f563752)\
**Replies:** 0\
**Last updated:** [February 18, 2018, 4:00pm UTC](https://forums.unrealengine.com/t/c-equivalent-of-moveto-node/417677 "2018-02-18T16:00:25Z")

</div>

Hi Guys, How would I implement the MoveTo node in c++? I have a c++ character class that inherits from ACharacter, and I want to be able to navigate around the navmesh in the scene. I tried importing an AAIControlle…

---

## [How would I make AI follow Other AI](https://forums.unrealengine.com/t/how-would-i-make-ai-follow-other-ai/417664)

<div class="topic-metadata">

**Author:** [@KennDamon](https://forums.unrealengine.com/u/KennDamon)\
**Replies:** 0\
**Last updated:** [February 18, 2018, 3:13pm UTC](https://forums.unrealengine.com/t/how-would-i-make-ai-follow-other-ai/417664 "2018-02-18T15:13:57Z")

</div>

So I made this enemy ai that wanders through the level, and runs towards the enemy when seen or heard. Then I made a smaller pet enemy that follows the player and makes noise when the player is seen. I can’t seem to figu…

---

## [Behavior Tree Move To Player is not working](https://forums.unrealengine.com/t/behavior-tree-move-to-player-is-not-working/416310)

<div class="topic-metadata">

**Author:** [@Impulse21](https://forums.unrealengine.com/u/Impulse21)\
**Replies:** 2\
**Last updated:** [February 17, 2018, 7:06pm UTC](https://forums.unrealengine.com/t/behavior-tree-move-to-player-is-not-working/416310 "2018-02-17T19:06:02Z")

</div>

Hi Community, I am trying to get my Enemy pawn to move to the player pawn. When the Blackboard value is set for the pawn, the enemy always faces the pawn, however it doesn’t move towards the target pawn. I have ensured …

---

## [How to Make a Pet AI](https://forums.unrealengine.com/t/how-to-make-a-pet-ai/417550)

<div class="topic-metadata">

**Author:** [@KennDamon](https://forums.unrealengine.com/u/KennDamon)\
**Replies:** 2\
**Last updated:** [February 17, 2018, 2:19pm UTC](https://forums.unrealengine.com/t/how-to-make-a-pet-ai/417550 "2018-02-17T14:19:27Z")

</div>

So I put together this AI that follows the player, and now I want to make it so when an enemy is near, the pet moves towards it to alert the player. The problem is since it’s already following me, I can’t get it to break…

---

## [Complex Parallel?](https://forums.unrealengine.com/t/complex-parallel/417444)

<div class="topic-metadata">

**Author:** [@entropyandvodka](https://forums.unrealengine.com/u/entropyandvodka)\
**Replies:** 1\
**Last updated:** [February 15, 2018, 11:31pm UTC](https://forums.unrealengine.com/t/complex-parallel/417444 "2018-02-15T23:31:26Z")

</div>

After reading the documentation on why UE4 uses Simple Parallel’s I had some lingering questions and concerns. Right now, I have a behavior tree that works just fine (it takes a collection of NPCs and sorts them into a…

---

## [How to change Viewport Navigation?](https://forums.unrealengine.com/t/how-to-change-viewport-navigation/404366)

<div class="topic-metadata">

**Author:** [@Chaven](https://forums.unrealengine.com/u/Chaven)\
**Replies:** 1\
**Last updated:** [February 15, 2018, 10:50pm UTC](https://forums.unrealengine.com/t/how-to-change-viewport-navigation/404366 "2018-02-15T22:50:40Z")

</div>

Is there an option to change the mouse navigation inside the viewport so that it is the same as in Blender. I think the Blender approach to navigating 3D space in manipulating and placing 3D objects feels more easier tha…

---

## [Constructed navigation invoker does not work](https://forums.unrealengine.com/t/constructed-navigation-invoker-does-not-work/417241)

<div class="topic-metadata">

**Author:** [@HCaliskan](https://forums.unrealengine.com/u/HCaliskan)\
**Replies:** 1\
**Last updated:** [February 15, 2018, 12:36pm UTC](https://forums.unrealengine.com/t/constructed-navigation-invoker-does-not-work/417241 "2018-02-15T12:36:46Z")

</div>

Hello people! I have been trying to add Navigation Invoker as a component to my actor. This is done through BeginPlay function. The problem is that the Navmesh does not bake at all. It does work if I add the Navig…

---

## [Make ai run around a character?](https://forums.unrealengine.com/t/make-ai-run-around-a-character/417358)

<div class="topic-metadata">

**Author:** [@yghtim](https://forums.unrealengine.com/u/yghtim)\
**Replies:** 0\
**Last updated:** [February 14, 2018, 11:17pm UTC](https://forums.unrealengine.com/t/make-ai-run-around-a-character/417358 "2018-02-14T23:17:41Z")

</div>

Man i have been googling around and there doesnt seem to be a simple way to do this? this seems like such a basic thing there must be a simple button somewhere? when i stand infront of an AI he simply cant walk around me…

---

## [How do I create a Semi Truck that is driven by AI for traffic Simulation?](https://forums.unrealengine.com/t/how-do-i-create-a-semi-truck-that-is-driven-by-ai-for-traffic-simulation/417328)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_d3845935](https://forums.unrealengine.com/u/anonymous_user_d3845935)\
**Replies:** 1\
**Last updated:** [February 14, 2018, 6:49pm UTC](https://forums.unrealengine.com/t/how-do-i-create-a-semi-truck-that-is-driven-by-ai-for-traffic-simulation/417328 "2018-02-14T18:49:30Z")

</div>

I am currently trying to make an AI driven Semi Truck with a trailer attached permanently. I am needing to make a semi for a traffic simulation. Any help will be appreciated.

---

## [Can I call BTTask from blueprint?](https://forums.unrealengine.com/t/can-i-call-bttask-from-blueprint/417225)

<div class="topic-metadata">

**Author:** [@FredPoissant](https://forums.unrealengine.com/u/FredPoissant)\
**Replies:** 0\
**Last updated:** [February 13, 2018, 7:00pm UTC](https://forums.unrealengine.com/t/can-i-call-bttask-from-blueprint/417225 "2018-02-13T19:00:49Z")

</div>

Hi, my AIs are patrolling my level to try to see or hear the player, but are not responding to gunshot sound or damage. I tried to change the rotation on any damage, but they only seem to twitch a bit and then keep on pa…

---

## [Dynamic NavMesh with World Composition](https://forums.unrealengine.com/t/dynamic-navmesh-with-world-composition/417075)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_de2b609a](https://forums.unrealengine.com/u/anonymous_user_de2b609a)\
**Replies:** 5\
**Last updated:** [February 13, 2018, 7:09am UTC](https://forums.unrealengine.com/t/dynamic-navmesh-with-world-composition/417075 "2018-02-13T07:09:16Z")

</div>

Hey All, So I am noticing with a dynamic navmesh and world composition. My navmesh is generated in editor but when I hit play it’s just gone and never generated again. My AI just stand around without a path.I hit P and …

---

## [AI left its client side capsule in place](https://forums.unrealengine.com/t/ai-left-its-client-side-capsule-in-place/417054)

<div class="topic-metadata">

**Author:** [@Robson1](https://forums.unrealengine.com/u/Robson1)\
**Replies:** 0\
**Last updated:** [February 11, 2018, 8:43pm UTC](https://forums.unrealengine.com/t/ai-left-its-client-side-capsule-in-place/417054 "2018-02-11T20:43:45Z")

</div>

Hey everyone. In dedicated server mode i noticed that my character is bumping into something invisible. I tested and it is the ai\`s capsule on the client side. In the beginning of playing my ai leaves its client side c…

---

## [Shooter Game + Different Map = Characters wont run around](https://forums.unrealengine.com/t/shooter-game-different-map-characters-wont-run-around/416985)

<div class="topic-metadata">

**Author:** [@Shred\_Hed\_Gaming](https://forums.unrealengine.com/u/Shred_Hed_Gaming)\
**Replies:** 0\
**Last updated:** [February 11, 2018, 1:53am UTC](https://forums.unrealengine.com/t/shooter-game-different-map-characters-wont-run-around/416985 "2018-02-11T01:53:31Z")

</div>

i have the shooter game demo, i am trying to put the bots into another map to make a new game. the bots will only turn and shoot. they will not run around at all. i have the same Nav Mesh set up as the regular shooter ga…

---

## [How to use bots in Shooter Game Sample?](https://forums.unrealengine.com/t/how-to-use-bots-in-shooter-game-sample/277902)

<div class="topic-metadata">

**Author:** [@Albert\_Espin\_1](https://forums.unrealengine.com/u/Albert_Espin_1)\
**Replies:** 9\
**Last updated:** [February 10, 2018, 9:11pm UTC](https://forums.unrealengine.com/t/how-to-use-bots-in-shooter-game-sample/277902 "2018-02-10T21:11:03Z")

</div>

Hi, I’ve read bots are in the Shooter Game and seen the navigation areas, but I haven’t been able to figure out how to activate them (tried with some game modes and play options). How can they be activated (I mean, make …

---

## [MoveToActor always fail](https://forums.unrealengine.com/t/movetoactor-always-fail/379918)

<div class="topic-metadata">

**Author:** [@Menion93](https://forums.unrealengine.com/u/Menion93)\
**Replies:** 1\
**Last updated:** [February 10, 2018, 10:19am UTC](https://forums.unrealengine.com/t/movetoactor-always-fail/379918 "2018-02-10T10:19:48Z")

</div>

I’m trying to do a simple script in c++ to move an ai to the current player position. I created the blackboard, behavour tree, placed the navmesh and programmed the tasks. When i run the game, the ai didn’t move at all. …

---

## [Behavior Tree - Task - ForEach Loop with Delay](https://forums.unrealengine.com/t/behavior-tree-task-foreach-loop-with-delay/416922)

<div class="topic-metadata">

**Author:** [@Rukgul](https://forums.unrealengine.com/u/Rukgul)\
**Replies:** 0\
**Last updated:** [February 10, 2018, 1:10am UTC](https://forums.unrealengine.com/t/behavior-tree-task-foreach-loop-with-delay/416922 "2018-02-10T01:10:22Z")

</div>

I have a odd experience. It appears while debugging that inserting a delay in a task (inside a loop) doesn’t finish the execution path but dump right to the completed pin. Here is what I have set up. I have a task “…

---

## [How to use FinishLatentTask()?](https://forums.unrealengine.com/t/how-to-use-finishlatenttask/416850)

<div class="topic-metadata">

**Author:** [@XynanXDB](https://forums.unrealengine.com/u/XynanXDB)\
**Replies:** 2\
**Last updated:** [February 9, 2018, 3:24pm UTC](https://forums.unrealengine.com/t/how-to-use-finishlatenttask/416850 "2018-02-09T15:24:17Z")

</div>

HI, everyone. I’m having problem to set a task’s EBTNodeResult from InProgress to Succeeded. I made the AI move to a location when the AI is too close to the player. EBTNodeResult::Type UBTTask\_MoveBack::ExecuteTask(UBe…

---

## [How to make AI walk backwards while looking at player?](https://forums.unrealengine.com/t/how-to-make-ai-walk-backwards-while-looking-at-player/416795)

<div class="topic-metadata">

**Author:** [@XynanXDB](https://forums.unrealengine.com/u/XynanXDB)\
**Replies:** 1\
**Last updated:** [February 9, 2018, 11:51am UTC](https://forums.unrealengine.com/t/how-to-make-ai-walk-backwards-while-looking-at-player/416795 "2018-02-09T11:51:16Z")

</div>

Hi, everyone. I’m having problems trying to implement “backstepping” for AI while looking at player that is in front of it in C++. I have tried multiple solutions but still no luck. Please educate me. Thanks in advance.

---

## [C++ behavior tree tasks](https://forums.unrealengine.com/t/c-behavior-tree-tasks/416791)

<div class="topic-metadata">

**Author:** [@jr557](https://forums.unrealengine.com/u/jr557)\
**Replies:** 1\
**Last updated:** [February 8, 2018, 9:16pm UTC](https://forums.unrealengine.com/t/c-behavior-tree-tasks/416791 "2018-02-08T21:16:21Z")

</div>

When implementing a behavior tree Task in C++, should we inherit from UBTTask\_BlackboardBase or its parent UBTTaskNode? How is the additional functionality in UBTTask\_BlackboardBase used when implementing tasks?

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

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