# AI

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

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

**Page:** 56

---

## [Navmesh not working properly!](https://forums.unrealengine.com/t/navmesh-not-working-properly/253575)

<div class="topic-metadata">

**Author:** [@Wolfen243](https://forums.unrealengine.com/u/Wolfen243)\
**Replies:** 1\
**Last updated:** [October 1, 2021, 10:57pm UTC](https://forums.unrealengine.com/t/navmesh-not-working-properly/253575 "2021-10-01T22:57:30Z")

</div>

I am having a problem with the navmesh not loading correctly on a certain stairway. I have multiple stairways in my level and I set all of their navmeshes up the same way, however one of my stairways have a cut in the na…

---

## [Spawn waves of enemies with delay](https://forums.unrealengine.com/t/spawn-waves-of-enemies-with-delay/489406)

<div class="topic-metadata">

**Author:** [@scourge9999](https://forums.unrealengine.com/u/scourge9999)\
**Replies:** 2\
**Last updated:** [October 1, 2021, 2:33pm UTC](https://forums.unrealengine.com/t/spawn-waves-of-enemies-with-delay/489406 "2021-10-01T14:33:53Z")

</div>

In a nutshell, don’t use a loop, use an IF. EDIT: Read your question a bit more closely, gimme 5… So, you could use the graph below, and plug the delay you read from the table into the delay node. But this doesn’t a…

---

## [Adding AI Character](https://forums.unrealengine.com/t/adding-ai-character/253004)

<div class="topic-metadata">

**Author:** [@Magnum164](https://forums.unrealengine.com/u/Magnum164)\
**Replies:** 1\
**Last updated:** [September 28, 2021, 4:08am UTC](https://forums.unrealengine.com/t/adding-ai-character/253004 "2021-09-28T04:08:46Z")

</div>

OK, I know there are tons of tutorials on how to add a AI Character but most use the 3rd Person Template. Which works, but I need the FPS Template. I have been out of game design for a while and need to re-learn blueprin…

---

## [Where is behaviour tree task construction script](https://forums.unrealengine.com/t/where-is-behaviour-tree-task-construction-script/252829)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_669611a5](https://forums.unrealengine.com/u/anonymous_user_669611a5)\
**Replies:** 0\
**Last updated:** [September 26, 2021, 11:13pm UTC](https://forums.unrealengine.com/t/where-is-behaviour-tree-task-construction-script/252829 "2021-09-26T23:13:25Z")

</div>

In c++ i can have constructor for a BTT, cause its a class. Is there a way to get constructor script for BTT in blueprint. I find it useful to do one time initialisation of data members, else i have to redo this every…

---

## [How do I make it when player is in certain range of AI, play a sound](https://forums.unrealengine.com/t/how-do-i-make-it-when-player-is-in-certain-range-of-ai-play-a-sound/489170)

<div class="topic-metadata">

**Author:** [@JaydenTheYT](https://forums.unrealengine.com/u/JaydenTheYT)\
**Replies:** 5\
**Last updated:** [September 25, 2021, 4:15pm UTC](https://forums.unrealengine.com/t/how-do-i-make-it-when-player-is-in-certain-range-of-ai-play-a-sound/489170 "2021-09-25T16:15:10Z")

</div>

Can anyone help me on this please? I’m completely lost as I’m really new to UE4, I thought just make a variable of my AI or Player and when Sphere Collision is colliding play a sound, But no, the Player can only spawn wi…

---

## [Why does my vector change value in behavior tree?](https://forums.unrealengine.com/t/why-does-my-vector-change-value-in-behavior-tree/489060)

<div class="topic-metadata">

**Author:** [@Re4verbot](https://forums.unrealengine.com/u/Re4verbot)\
**Replies:** 0\
**Last updated:** [September 23, 2021, 2:14am UTC](https://forums.unrealengine.com/t/why-does-my-vector-change-value-in-behavior-tree/489060 "2021-09-23T02:14:38Z")

</div>

Why does my vector value change between tasks? I have one task that pulls the vector of an actor in the scene. Debug Log says its roughly 0 0 0 (scene origin). The actor never moves and the value is saved. However, later…

---

## [Why am I getting reference errors?](https://forums.unrealengine.com/t/why-am-i-getting-reference-errors/489050)

<div class="topic-metadata">

**Author:** [@Re4verbot](https://forums.unrealengine.com/u/Re4verbot)\
**Replies:** 2\
**Last updated:** [September 22, 2021, 2:49pm UTC](https://forums.unrealengine.com/t/why-am-i-getting-reference-errors/489050 "2021-09-22T14:49:49Z")

</div>

Why am I getting these errors in my Behavior Tree? I am doing a simple move actor to, and in Play the referenced actor DOES move around, so it seems to be working. What gives?

---

## [NPC behavior: defend himself](https://forums.unrealengine.com/t/npc-behavior-defend-himself/251643)

<div class="topic-metadata">

**Author:** [@Dimajio333](https://forums.unrealengine.com/u/Dimajio333)\
**Replies:** 4\
**Last updated:** [September 20, 2021, 2:38pm UTC](https://forums.unrealengine.com/t/npc-behavior-defend-himself/251643 "2021-09-20T14:38:49Z")

</div>

Hi. Currently I am learning AI part of UE. I am using Dynamic Combat System, where I have one Example Character and one TreningDummy. I am trying to implement the responsiveness/reaction for NPC (like defence himself, a…

---

## [AI velocity sets to "0" every other frame](https://forums.unrealengine.com/t/ai-velocity-sets-to-0-every-other-frame/465855)

<div class="topic-metadata">

**Author:** [@Virtual\_Bones](https://forums.unrealengine.com/u/Virtual_Bones)\
**Replies:** 2\
**Last updated:** [September 19, 2021, 6:08pm UTC](https://forums.unrealengine.com/t/ai-velocity-sets-to-0-every-other-frame/465855 "2021-09-19T18:08:47Z")

</div>

Honestly, this problem is really starting to annoy me. I cannot reach out to Epic Games for the fact this is a hobby project and nothing more. Basically, every other frame, my pawn stops moving completely, then resets ba…

---

## [Behavior tree in tutorial](https://forums.unrealengine.com/t/behavior-tree-in-tutorial/251208)

<div class="topic-metadata">

**Author:** [@Rage84](https://forums.unrealengine.com/u/Rage84)\
**Replies:** 4\
**Last updated:** [September 19, 2021, 9:43am UTC](https://forums.unrealengine.com/t/behavior-tree-in-tutorial/251208 "2021-09-19T09:43:49Z")

</div>

Hi everyone, long story short, i’ve tried this tutorial in ue4 with paper characters and nothing wrong, after i’ve tried it in my project on UE5 and doesn’t work seems that it can’t store the “PatrolLocation” variable in…

---

## [Cannot compile UNavigationSystem in 4.20.1](https://forums.unrealengine.com/t/cannot-compile-unavigationsystem-in-4-20-1/432568)

<div class="topic-metadata">

**Author:** [@Re4gNarsil](https://forums.unrealengine.com/u/Re4gNarsil)\
**Replies:** 9\
**Last updated:** [September 18, 2021, 6:39am UTC](https://forums.unrealengine.com/t/cannot-compile-unavigationsystem-in-4-20-1/432568 "2021-09-18T06:39:24Z")

</div>

Hey guys, I’ve tried searching all morning but can’t find a way to find the navigation system after going to 4.20 and get it to compile; I used to use UNavigationSystem \* NavigationArea = UNavigationSystem::GetCurrent(G…

---

## [Ai wont move when assigned a location](https://forums.unrealengine.com/t/ai-wont-move-when-assigned-a-location/488872)

<div class="topic-metadata">

**Author:** [@Zedrophobe](https://forums.unrealengine.com/u/Zedrophobe)\
**Replies:** 2\
**Last updated:** [September 16, 2021, 6:46pm UTC](https://forums.unrealengine.com/t/ai-wont-move-when-assigned-a-location/488872 "2021-09-16T18:46:12Z")

</div>

My ai character wont move when assigned a location, location is shown as a target, but just stops. Its random works, but the moment its assigned an actual location it stops and the behaviour tree goes nuts. In addition…

---

## [SVO Navigation in UE4](https://forums.unrealengine.com/t/svo-navigation-in-ue4/250788)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_4f973aae](https://forums.unrealengine.com/u/anonymous_user_4f973aae)\
**Replies:** 2\
**Last updated:** [September 15, 2021, 6:00am UTC](https://forums.unrealengine.com/t/svo-navigation-in-ue4/250788 "2021-09-15T06:00:10Z")

</div>

Hello, For a game I am developing I was looking into 3D Navigation for pawns. After some research I decided to try it by myself - in theory it does not look too difficult to have a basic version. My game will not have v…

---

## [Navmesh Agent Radius doesn't do anything](https://forums.unrealengine.com/t/navmesh-agent-radius-doesnt-do-anything/249525)

<div class="topic-metadata">

**Author:** [@arisatherton](https://forums.unrealengine.com/u/arisatherton)\
**Replies:** 2\
**Last updated:** [September 15, 2021, 2:11am UTC](https://forums.unrealengine.com/t/navmesh-agent-radius-doesnt-do-anything/249525 "2021-09-15T02:11:37Z")

</div>

I want my ai to be able to get closer to walls, but if I change the Agent Radius property in the project settings, the navmesh doesn’t change. Changing other properties works, it’s just that one. I’m on 4.27, but have n…

---

## [Shark AI to circle the player ](https://forums.unrealengine.com/t/shark-ai-to-circle-the-player/249156)

<div class="topic-metadata">

**Author:** [@ForTehGloray](https://forums.unrealengine.com/u/ForTehGloray)\
**Replies:** 1\
**Last updated:** [September 15, 2021, 1:02am UTC](https://forums.unrealengine.com/t/shark-ai-to-circle-the-player/249156 "2021-09-15T01:02:26Z")

</div>

Hey there, Im trying to code a shark ai thats able to freely move around the map and when seeing the player it will attack and then circle the player and continue to go in and attack and circle until the player or shark…

---

## [Blackboards and variable arrays](https://forums.unrealengine.com/t/blackboards-and-variable-arrays/488746)

<div class="topic-metadata">

**Author:** [@BlackMerci](https://forums.unrealengine.com/u/BlackMerci)\
**Replies:** 2\
**Last updated:** [September 14, 2021, 8:58pm UTC](https://forums.unrealengine.com/t/blackboards-and-variable-arrays/488746 "2021-09-14T20:58:03Z")

</div>

I need a variable in a blackboard that is an array of actors to be filled and after read by tasks of a behavior tree, is this possible?

---

## [AI Performance Issue / Unreal Insight](https://forums.unrealengine.com/t/ai-performance-issue-unreal-insight/488799)

<div class="topic-metadata">

**Author:** [@jschollbach](https://forums.unrealengine.com/u/jschollbach)\
**Replies:** 0\
**Last updated:** [September 14, 2021, 7:37pm UTC](https://forums.unrealengine.com/t/ai-performance-issue-unreal-insight/488799 "2021-09-14T19:37:11Z")

</div>

Hey Guys, Im facing an performance Issue im unreal Engine by Spawning to much AI. I tried to check with Unreal Insight the Performance gaps of the AI. I recognized that there are big gaps with waiting time and without…

---

## [Please explain how to connect a character to a behaviour tree](https://forums.unrealengine.com/t/please-explain-how-to-connect-a-character-to-a-behaviour-tree/488790)

<div class="topic-metadata">

**Author:** [@Zedrophobe](https://forums.unrealengine.com/u/Zedrophobe)\
**Replies:** 2\
**Last updated:** [September 14, 2021, 6:57pm UTC](https://forums.unrealengine.com/t/please-explain-how-to-connect-a-character-to-a-behaviour-tree/488790 "2021-09-14T18:57:36Z")

</div>

Could somebody please explain in the simplest possible way how to connect a duplicated Third Person Character to a behaviour tree. The official tutorial shows some mention of adding into the controller (which doesn’t wo…

---

## [Missing steps in Introduction to AI with Blueprints on the Unreal Learning site](https://forums.unrealengine.com/t/missing-steps-in-introduction-to-ai-with-blueprints-on-the-unreal-learning-site/138715)

<div class="topic-metadata">

**Author:** [@M0F0M0J0](https://forums.unrealengine.com/u/M0F0M0J0)\
**Replies:** 11\
**Last updated:** [September 14, 2021, 3:51am UTC](https://forums.unrealengine.com/t/missing-steps-in-introduction-to-ai-with-blueprints-on-the-unreal-learning-site/138715 "2021-09-14T03:51:19Z")

</div>

I’m going through the Introduction to AI with Blueprints at Ooops! Invalid access and ran into a snag. I’m looking for advice on how to fill in this gap. The training gets to three modules Behavior Tree Theory Buildin…

---

## [AI Acceptance Radius and Stairs/Vertical Distance](https://forums.unrealengine.com/t/ai-acceptance-radius-and-stairs-vertical-distance/488664)

<div class="topic-metadata">

**Author:** [@samuelthomson](https://forums.unrealengine.com/u/samuelthomson)\
**Replies:** 0\
**Last updated:** [September 11, 2021, 4:20pm UTC](https://forums.unrealengine.com/t/ai-acceptance-radius-and-stairs-vertical-distance/488664 "2021-09-11T16:20:01Z")

</div>

Hello, I’ve set up a Behavior Tree MoveTo node with an “Acceptable Radius” of 1000cm. This works fine on flat ground, and it also works fine if my AI character and my Player character are on different, unconnected platf…

---

## [Navmesh build caching?](https://forums.unrealengine.com/t/navmesh-build-caching/250062)

<div class="topic-metadata">

**Author:** [@JSwigart](https://forums.unrealengine.com/u/JSwigart)\
**Replies:** 0\
**Last updated:** [September 10, 2021, 10:54pm UTC](https://forums.unrealengine.com/t/navmesh-build-caching/250062 "2021-09-10T22:54:51Z")

</div>

Is there a way to set up the project to cache the built navmesh so every time I launch the editor it doesn’t have to build 9000 tiles?

---

## [Wrong NavLinkProxy chosen on ReceiveSmartLinkReached event](https://forums.unrealengine.com/t/wrong-navlinkproxy-chosen-on-receivesmartlinkreached-event/488557)

<div class="topic-metadata">

**Author:** [@HAF-Blade](https://forums.unrealengine.com/u/HAF-Blade)\
**Replies:** 0\
**Last updated:** [September 8, 2021, 9:08pm UTC](https://forums.unrealengine.com/t/wrong-navlinkproxy-chosen-on-receivesmartlinkreached-event/488557 "2021-09-08T21:08:10Z")

</div>

Like described here Nav Link Proxy SmartLinkReached event caught by wrong Nav Link - #4 by HAF-Blade the wrong NavLinkProxy reference is chosen, when an AI character reaches a SmartLink of a NavLinkProxy. I’ve created s…

---

## [Behaviour Tree observer problem](https://forums.unrealengine.com/t/behaviour-tree-observer-problem/488453)

<div class="topic-metadata">

**Author:** [@mighty\_ganesh](https://forums.unrealengine.com/u/mighty_ganesh)\
**Replies:** 6\
**Last updated:** [September 6, 2021, 1:38pm UTC](https://forums.unrealengine.com/t/behaviour-tree-observer-problem/488453 "2021-09-06T13:38:17Z")

</div>

I have problem which drives me crazy and I hope someone can help me… On a behaviour tree I have under the root node one selector from which there are 5 subtrees all starting with a selector. Looking at the node numbers o…

---

## [What does the "Move To" AI task look like inside?](https://forums.unrealengine.com/t/what-does-the-move-to-ai-task-look-like-inside/488419)

<div class="topic-metadata">

**Author:** [@Tash2\_1](https://forums.unrealengine.com/u/Tash2_1)\
**Replies:** 2\
**Last updated:** [September 5, 2021, 8:29pm UTC](https://forums.unrealengine.com/t/what-does-the-move-to-ai-task-look-like-inside/488419 "2021-09-05T20:29:56Z")

</div>

I want to create an identical copy of the “move to” AI task, so I can modify it with more variables to make things simpler on myself. But apparently, there’s something going on under the hood of the “Move to” task that I…

---

## [AIm Offset not working](https://forums.unrealengine.com/t/aim-offset-not-working/247744)

<div class="topic-metadata">

**Author:** [@Jimonions](https://forums.unrealengine.com/u/Jimonions)\
**Replies:** 2\
**Last updated:** [September 2, 2021, 3:11pm UTC](https://forums.unrealengine.com/t/aim-offset-not-working/247744 "2021-09-02T15:11:53Z")

</div>

Hi For some reason Transform (modify) Bone does not seem to work with Roll and Pitch, only yaw works. I confirmed that the value going into roll is correct. Trying to unhook the input and manually input a value does no…

---

## [How leave sequence after "wait" in behaviour tree](https://forums.unrealengine.com/t/how-leave-sequence-after-wait-in-behaviour-tree/248273)

<div class="topic-metadata">

**Author:** [@Lamaral14](https://forums.unrealengine.com/u/Lamaral14)\
**Replies:** 6\
**Last updated:** [September 1, 2021, 8:36pm UTC](https://forums.unrealengine.com/t/how-leave-sequence-after-wait-in-behaviour-tree/248273 "2021-09-01T20:36:12Z")

</div>

i Have this sequence that starts when “goingToDecoy” is set true, and i want to set “goingToDecoy” to false after the wait, so i created the task “LeaveDecoy” like this: and set the key to “goingToDecoy”: But …

---

## ["On Target Update Perception" node does not exist](https://forums.unrealengine.com/t/on-target-update-perception-node-does-not-exist/392043)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_a0ce014a](https://forums.unrealengine.com/u/anonymous_user_a0ce014a)\
**Replies:** 3\
**Last updated:** [September 1, 2021, 10:12am UTC](https://forums.unrealengine.com/t/on-target-update-perception-node-does-not-exist/392043 "2021-09-01T10:12:02Z")

</div>

I have used this node countless times and now all of a sudden I cant find it anywhere even if the context box is unchecked. I feel like I am going crazy. I am in the AI controller and it has a perception component and it…

---

## [AI won't drop off ledges or climb stairs](https://forums.unrealengine.com/t/ai-wont-drop-off-ledges-or-climb-stairs/413681)

<div class="topic-metadata">

**Author:** [@sounderdisc](https://forums.unrealengine.com/u/sounderdisc)\
**Replies:** 7\
**Last updated:** [August 28, 2021, 12:50pm UTC](https://forums.unrealengine.com/t/ai-wont-drop-off-ledges-or-climb-stairs/413681 "2021-08-28T12:50:08Z")

</div>

My AI won’t walk off ledges or use the stairs. I think it’s a problem with the NavMesh, but I’m not sure how to fix it. Pictures are provided.

---

## [AI without behaviour tree](https://forums.unrealengine.com/t/ai-without-behaviour-tree/487993)

<div class="topic-metadata">

**Author:** [@ares\_514](https://forums.unrealengine.com/u/ares_514)\
**Replies:** 0\
**Last updated:** [August 25, 2021, 4:34pm UTC](https://forums.unrealengine.com/t/ai-without-behaviour-tree/487993 "2021-08-25T16:34:24Z")

</div>

he i am working on ai for my learning project but i found that using behaiviour trees get cumbersome fast with all the tasks and decorators and that i need to creat a behaviour tree or recreats some tasks for every enem…

---

## [What is the best way to handle navigation mesh and levels streaming?](https://forums.unrealengine.com/t/what-is-the-best-way-to-handle-navigation-mesh-and-levels-streaming/487924)

<div class="topic-metadata">

**Author:** [@xXUnreal34Xx](https://forums.unrealengine.com/u/xXUnreal34Xx)\
**Replies:** 0\
**Last updated:** [August 24, 2021, 8:35pm UTC](https://forums.unrealengine.com/t/what-is-the-best-way-to-handle-navigation-mesh-and-levels-streaming/487924 "2021-08-24T20:35:47Z")

</div>

Hello everyone, I’m working on a game where you can load a specific map from a menu. When you select the map, the map is loaded with a loading screen. But when the map is loaded all AI are blocked and can’t move anywher…

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

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