# AI

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

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

**Page:** 99

---

## [Can I get the size of a chunk of my nav mesh?](https://forums.unrealengine.com/t/can-i-get-the-size-of-a-chunk-of-my-nav-mesh/419909)

<div class="topic-metadata">

**Author:** [@Abraham](https://forums.unrealengine.com/u/Abraham)\
**Replies:** 0\
**Last updated:** [March 15, 2018, 5:07pm UTC](https://forums.unrealengine.com/t/can-i-get-the-size-of-a-chunk-of-my-nav-mesh/419909 "2018-03-15T17:07:39Z")

</div>

My game uses dynamic walls that will sometimes trap my AI in a small section of an arena. Ideally I would like to be able to check to see how large the piece of the navmesh the AI is currently on is, so I could trigger a…

---

## [Calling a specific Object (Actor) of a Class?](https://forums.unrealengine.com/t/calling-a-specific-object-actor-of-a-class/419819)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_ab9cda3e](https://forums.unrealengine.com/u/anonymous_user_ab9cda3e)\
**Replies:** 2\
**Last updated:** [March 14, 2018, 6:44pm UTC](https://forums.unrealengine.com/t/calling-a-specific-object-actor-of-a-class/419819 "2018-03-14T18:44:20Z")

</div>

So I have two Weapons on the ground. They have the same class, but they have different meshes and names. So, I haven’t made any complex inventory system yet. But what I planned to do was that, when pressing a specific b…

---

## [Activate AI to follow player](https://forums.unrealengine.com/t/activate-ai-to-follow-player/419640)

<div class="topic-metadata">

**Author:** [@EmilyBec](https://forums.unrealengine.com/u/EmilyBec)\
**Replies:** 4\
**Last updated:** [March 14, 2018, 5:43pm UTC](https://forums.unrealengine.com/t/activate-ai-to-follow-player/419640 "2018-03-14T17:43:55Z")

</div>

So if you have BT and blackboard add boolean key to your BT task we can call it AllowToFollow and check condition of that key in details of your task. Depends on your logic where you will set key value in AI controller …

---

## [What exactly is path length and path cost?](https://forums.unrealengine.com/t/what-exactly-is-path-length-and-path-cost/385607)

<div class="topic-metadata">

**Author:** [@t0b4cc0](https://forums.unrealengine.com/u/t0b4cc0)\
**Replies:** 1\
**Last updated:** [March 13, 2018, 4:35pm UTC](https://forums.unrealengine.com/t/what-exactly-is-path-length-and-path-cost/385607 "2018-03-13T16:35:46Z")

</div>

Hi! from the find path to loaction query… im not exactly sure what cost is supposed to be. the len seems to be pretty much exactly the lenght of the vector idk tho how those 2 behave

---

## [How to create shot system for AI?](https://forums.unrealengine.com/t/how-to-create-shot-system-for-ai/419515)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_0c56ce81](https://forums.unrealengine.com/u/anonymous_user_0c56ce81)\
**Replies:** 2\
**Last updated:** [March 12, 2018, 4:09pm UTC](https://forums.unrealengine.com/t/how-to-create-shot-system-for-ai/419515 "2018-03-12T16:09:31Z")

</div>

I want to create shot system for AI. When my AI sees the player he must shoot it with balls.

---

## [How do I get my character to auto attack?](https://forums.unrealengine.com/t/how-do-i-get-my-character-to-auto-attack/419568)

<div class="topic-metadata">

**Author:** [@HeliSailing](https://forums.unrealengine.com/u/HeliSailing)\
**Replies:** 9\
**Last updated:** [March 12, 2018, 3:43am UTC](https://forums.unrealengine.com/t/how-do-i-get-my-character-to-auto-attack/419568 "2018-03-12T03:43:19Z")

</div>

Hi! I’ve tried adding a “WhileLoop” after the rotation, with the condition basically being that I attack until AI health is \<=0, but it just results in an infinite loop error or engine crash. Any help or guidance is ap…

---

## [How to use DetectionByAffiliation and build complex fractions relations](https://forums.unrealengine.com/t/how-to-use-detectionbyaffiliation-and-build-complex-fractions-relations/419326)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_2ccef736](https://forums.unrealengine.com/u/anonymous_user_2ccef736)\
**Replies:** 3\
**Last updated:** [March 11, 2018, 7:46pm UTC](https://forums.unrealengine.com/t/how-to-use-detectionbyaffiliation-and-build-complex-fractions-relations/419326 "2018-03-11T19:46:59Z")

</div>

Hi, I’m playing with UAIPerceptionComponent and UAISenseConfig\_Sight. I managed to make it work but I have some questions regarding DetectionByAffiliation. In every example I have found bDetectEnemies, bDetectNeutrals a…

---

## [How could i tell my ai to jump?](https://forums.unrealengine.com/t/how-could-i-tell-my-ai-to-jump/419563)

<div class="topic-metadata">

**Author:** [@Tyjos29](https://forums.unrealengine.com/u/Tyjos29)\
**Replies:** 0\
**Last updated:** [March 11, 2018, 7:33pm UTC](https://forums.unrealengine.com/t/how-could-i-tell-my-ai-to-jump/419563 "2018-03-11T19:33:50Z")

</div>

Hi, I followed the \[rama’s Tutorial\] (How to Write Custom UE4 AI C++ Pathing Code, How to get All Nav Polys For Custom Code - C++ - Unreal Engine Forums) but I don’t know how to tell the AI ​​to jump or fall if necessary…

---

## [How to create shot system for AI?](https://forums.unrealengine.com/t/how-to-create-shot-system-for-ai/419514)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_0c56ce81](https://forums.unrealengine.com/u/anonymous_user_0c56ce81)\
**Replies:** 1\
**Last updated:** [March 11, 2018, 4:49pm UTC](https://forums.unrealengine.com/t/how-to-create-shot-system-for-ai/419514 "2018-03-11T16:49:28Z")

</div>

I want to create shot system for AI. When my AI sees the player he must shoot it with balls.

---

## [Nav mesh bounds?](https://forums.unrealengine.com/t/nav-mesh-bounds/419517)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_0c56ce81](https://forums.unrealengine.com/u/anonymous_user_0c56ce81)\
**Replies:** 2\
**Last updated:** [March 11, 2018, 3:29pm UTC](https://forums.unrealengine.com/t/nav-mesh-bounds/419517 "2018-03-11T15:29:52Z")

</div>

I have not created nav mesh bounds under my character and because of this he does not want to navigate.

---

## [Why does Rotate to face BB entry flickers constantly?](https://forums.unrealengine.com/t/why-does-rotate-to-face-bb-entry-flickers-constantly/419498)

<div class="topic-metadata">

**Author:** [@acxsasx](https://forums.unrealengine.com/u/acxsasx)\
**Replies:** 1\
**Last updated:** [March 11, 2018, 1:04am UTC](https://forums.unrealengine.com/t/why-does-rotate-to-face-bb-entry-flickers-constantly/419498 "2018-03-11T01:04:48Z")

</div>

Rotate to face BB entry works fine. However that branch flickers rapidly like it never completes, yet it worked. I have the standard Wait task to execute after it, but it never gets to that point. Is this fine? I onl…

---

## [AI stops chasing after crossing to another Nav mesh](https://forums.unrealengine.com/t/ai-stops-chasing-after-crossing-to-another-nav-mesh/417462)

<div class="topic-metadata">

**Author:** [@Atijaf](https://forums.unrealengine.com/u/Atijaf)\
**Replies:** 2\
**Last updated:** [March 9, 2018, 8:24pm UTC](https://forums.unrealengine.com/t/ai-stops-chasing-after-crossing-to-another-nav-mesh/417462 "2018-03-09T20:24:49Z")

</div>

Hello, I’m unsure if I’m posting in the correct area, so please let me know if I should post elsewhere. I’m having an issue where my AI character stops chasing me after I cross to another section of the same Nav Mesh. …

---

## [AI Perception History](https://forums.unrealengine.com/t/ai-perception-history/416413)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_ef52b559](https://forums.unrealengine.com/u/anonymous_user_ef52b559)\
**Replies:** 2\
**Last updated:** [March 8, 2018, 9:28pm UTC](https://forums.unrealengine.com/t/ai-perception-history/416413 "2018-03-08T21:28:00Z")

</div>

I have managed to get basic AI perception working fine. however, when running the ai debug I noticed that a perceived actor’s last known location was stored along with the age of the stimulus. I couldn’t find where the a…

---

## [Getting AI Characters to Interact With Objects](https://forums.unrealengine.com/t/getting-ai-characters-to-interact-with-objects/419101)

<div class="topic-metadata">

**Author:** [@Gampersnaz](https://forums.unrealengine.com/u/Gampersnaz)\
**Replies:** 5\
**Last updated:** [March 6, 2018, 9:52pm UTC](https://forums.unrealengine.com/t/getting-ai-characters-to-interact-with-objects/419101 "2018-03-06T21:52:56Z")

</div>

Hey there, just wondering if anyone has any links to some tutorials regarding this. I have looked around a bit, but can’t seem to find what I’m looking for. For example: I have a chair and an AI character, and I want the…

---

## [AI tutorial finished, but AI not animating to walk/run](https://forums.unrealengine.com/t/ai-tutorial-finished-but-ai-not-animating-to-walk-run/331118)

<div class="topic-metadata">

**Author:** [@Otreum](https://forums.unrealengine.com/u/Otreum)\
**Replies:** 2\
**Last updated:** [March 6, 2018, 8:36pm UTC](https://forums.unrealengine.com/t/ai-tutorial-finished-but-ai-not-animating-to-walk-run/331118 "2018-03-06T20:36:42Z")

</div>

I just followed through the tutorial located here. https://docs.unrealengine.com/latest/INT/Engine/AI/BehaviorTrees/QuickStart/14/index.html The only difference is that I’m using Third Person Template, as opposed to th…

---

## [EQS Find Hiding Spot not work with MotionControllerPawn](https://forums.unrealengine.com/t/eqs-find-hiding-spot-not-work-with-motioncontrollerpawn/418450)

<div class="topic-metadata">

**Author:** [@Reaver47](https://forums.unrealengine.com/u/Reaver47)\
**Replies:** 1\
**Last updated:** [March 6, 2018, 7:04pm UTC](https://forums.unrealengine.com/t/eqs-find-hiding-spot-not-work-with-motioncontrollerpawn/418450 "2018-03-06T19:04:03Z")

</div>

Hi all, yersterday i create all the blueprint following the tutorial of EQS and i create the findHidingSpotEQS, using the VR MotionControllerPawn of the VR Template Project as the actorFromFlee the AI don’t move and do…

---

## [Accessed none trying to read property (Bad Blueprint communication)](https://forums.unrealengine.com/t/accessed-none-trying-to-read-property-bad-blueprint-communication/418859)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_91c926f3](https://forums.unrealengine.com/u/anonymous_user_91c926f3)\
**Replies:** 7\
**Last updated:** [March 6, 2018, 5:52pm UTC](https://forums.unrealengine.com/t/accessed-none-trying-to-read-property-bad-blueprint-communication/418859 "2018-03-06T17:52:46Z")

</div>

Hi there, in my game, i want to spawn an AI when the player does something. It seems like the engine has a problem with the way that i am setting the variables in there. So this is the output log : This is the beha…

---

## [Game framerate slows over time (Enemy AI?)](https://forums.unrealengine.com/t/game-framerate-slows-over-time-enemy-ai/418896)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_d85eabab](https://forums.unrealengine.com/u/anonymous_user_d85eabab)\
**Replies:** 4\
**Last updated:** [March 6, 2018, 7:33am UTC](https://forums.unrealengine.com/t/game-framerate-slows-over-time-enemy-ai/418896 "2018-03-06T07:33:53Z")

</div>

hi, my game FPS slowly decreases over time, starts at 100 and after a few minutes drops to 5. I think its enemy AI because when i turned off the AI bots sensing (about 30 in total) and flew around the level, there was no…

---

## [My AI don't want to move](https://forums.unrealengine.com/t/my-ai-dont-want-to-move/419042)

<div class="topic-metadata">

**Author:** [@Orseiko](https://forums.unrealengine.com/u/Orseiko)\
**Replies:** 8\
**Last updated:** [March 5, 2018, 9:52pm UTC](https://forums.unrealengine.com/t/my-ai-dont-want-to-move/419042 "2018-03-05T21:52:15Z")

</div>

Hello, I don’t understand why my AI spawn but definitely don’t move. All suggestions are welcome :slight\_smile: This is where spawn my AI and where should it move. (start in green and end in red) This is my level …

---

## [How to get AI to try and get behind the player](https://forums.unrealengine.com/t/how-to-get-ai-to-try-and-get-behind-the-player/418976)

<div class="topic-metadata">

**Author:** [@Canti\_Prime](https://forums.unrealengine.com/u/Canti_Prime)\
**Replies:** 1\
**Last updated:** [March 4, 2018, 11:54pm UTC](https://forums.unrealengine.com/t/how-to-get-ai-to-try-and-get-behind-the-player/418976 "2018-03-04T23:54:00Z")

</div>

What kind of game mechanics are we dealing with here? Does your player move? Do you want the AI to “follow” or “chase” the player? Do you just want them to move to a position “behind” the player? It’s hard to figure out …

---

## [Passing a Spline Component to Blackboard Key](https://forums.unrealengine.com/t/passing-a-spline-component-to-blackboard-key/418968)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_be043daf](https://forums.unrealengine.com/u/anonymous_user_be043daf)\
**Replies:** 0\
**Last updated:** [March 4, 2018, 10:02pm UTC](https://forums.unrealengine.com/t/passing-a-spline-component-to-blackboard-key/418968 "2018-03-04T22:02:07Z")

</div>

Is it possible to pass a spline component to a blackboard key? Keys can only be 1 of 11 types, and Spline Component isn’t one of them. If I’m able to pass my spline component, then what Key Type do I need to use?

---

## [Why Does My Behavior tree stuck at "Blackboard Based Condition"?](https://forums.unrealengine.com/t/why-does-my-behavior-tree-stuck-at-blackboard-based-condition/418844)

<div class="topic-metadata">

**Author:** [@Branden\_Marais\_1](https://forums.unrealengine.com/u/Branden_Marais_1)\
**Replies:** 0\
**Last updated:** [March 3, 2018, 10:47am UTC](https://forums.unrealengine.com/t/why-does-my-behavior-tree-stuck-at-blackboard-based-condition/418844 "2018-03-03T10:47:35Z")

</div>

So It runs fine when a bool in the blackboard “IsRunningAway” is false but once it is set to true it just freezes and doesn’t continue anymore like in pic\_03 node number 1+2 ??? What am I doing wrong? Please …

---

## [AI ANIMATION please:)](https://forums.unrealengine.com/t/ai-animation-please/418838)

<div class="topic-metadata">

**Author:** [@apm112](https://forums.unrealengine.com/u/apm112)\
**Replies:** 0\
**Last updated:** [March 3, 2018, 7:27am UTC](https://forums.unrealengine.com/t/ai-animation-please/418838 "2018-03-03T07:27:03Z")

</div>

Hello! SO i made an AI pawn, so that when it sees the player, it comes to him and plays a certain sound, but when i am trying to do this with an animation(play animation node) instead of playing the actuall animation, it…

---

## [How to use UNavigationSystem::FindPathToLocationSynchronously for an AI to detect if a location is reachable taking the nav query filter into consideration as well?](https://forums.unrealengine.com/t/how-to-use-unavigationsystem-findpathtolocationsynchronously-for-an-ai-to-detect-if-a-location-is-reachable-taking-the-nav-query-filter-into-consideration-as-well/418692)

<div class="topic-metadata">

**Author:** [@YuchenMei](https://forums.unrealengine.com/u/YuchenMei)\
**Replies:** 0\
**Last updated:** [March 1, 2018, 3:59pm UTC](https://forums.unrealengine.com/t/how-to-use-unavigationsystem-findpathtolocationsynchronously-for-an-ai-to-detect-if-a-location-is-reachable-taking-the-nav-query-filter-into-consideration-as-well/418692 "2018-03-01T15:59:43Z")

</div>

I am trying to use UNavigationSystem::FindPathToLocationSynchronously to see if a location is reachable for my NPC. My NPC has a NavQueryFilter which excludes the water NavArea so if a location is in the water area I ex…

---

## [Behavior tree only ticks every other frame](https://forums.unrealengine.com/t/behavior-tree-only-ticks-every-other-frame/337222)

<div class="topic-metadata">

**Author:** [@Geckaster](https://forums.unrealengine.com/u/Geckaster)\
**Replies:** 10\
**Last updated:** [March 1, 2018, 2:42am UTC](https://forums.unrealengine.com/t/behavior-tree-only-ticks-every-other-frame/337222 "2018-03-01T02:42:05Z")

</div>

I’m currently working on AI and noticed that for some reason the task in my behavior tree only gets called every second frame (see below). This is the case regardless of which event (Receive Execute, Tick AI, etc.) I use…

---

## [AI disregards braking friction and deceleration](https://forums.unrealengine.com/t/ai-disregards-braking-friction-and-deceleration/418239)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_7a7d7ffd](https://forums.unrealengine.com/u/anonymous_user_7a7d7ffd)\
**Replies:** 1\
**Last updated:** [March 1, 2018, 1:10am UTC](https://forums.unrealengine.com/t/ai-disregards-braking-friction-and-deceleration/418239 "2018-03-01T01:10:02Z")

</div>

I’m trying to build a pseudo-vehicle AI using the character blueprint as a base. In my Behaviour Tree, I am using the MoveToActorOrLocation node to try and have the AI “drive” (walk) to a point and then once their eithe…

---

## [How to stop AI character?](https://forums.unrealengine.com/t/how-to-stop-ai-character/418590)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_0c56ce81](https://forums.unrealengine.com/u/anonymous_user_0c56ce81)\
**Replies:** 6\
**Last updated:** [February 28, 2018, 11:08pm UTC](https://forums.unrealengine.com/t/how-to-stop-ai-character/418590 "2018-02-28T23:08:05Z")

</div>

I want to stop AI Character but i don’t know how this doing… ( I want STOP, no destroy ) Sorry for my bad English)

---

## [How to make the Nav Mesh Volume follow Player?](https://forums.unrealengine.com/t/how-to-make-the-nav-mesh-volume-follow-player/418234)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_c069c888](https://forums.unrealengine.com/u/anonymous_user_c069c888)\
**Replies:** 4\
**Last updated:** [February 27, 2018, 5:47pm UTC](https://forums.unrealengine.com/t/how-to-make-the-nav-mesh-volume-follow-player/418234 "2018-02-27T17:47:05Z")

</div>

Im making an endless runner but with AI into it, i have got the endless platforms however the ai wouldn’t work on them. So i went into project settings, nav mesh and set it to dynamic. However, my nav mesh volume would…

---

## [Navmesh Help](https://forums.unrealengine.com/t/navmesh-help/418187)

<div class="topic-metadata">

**Author:** [@KH1212](https://forums.unrealengine.com/u/KH1212)\
**Replies:** 4\
**Last updated:** [February 26, 2018, 8:53am UTC](https://forums.unrealengine.com/t/navmesh-help/418187 "2018-02-26T08:53:56Z")

</div>

Im gonna sum this up quick, basically i have multiple AI and only 1 is really unique. That 1 is allowed to go through walls and other objects. I’m currently using the “Can ever affect navigation” to false and it works pe…

---

## [BT 'Move To' after EQS randomly fails?](https://forums.unrealengine.com/t/bt-move-to-after-eqs-randomly-fails/418293)

<div class="topic-metadata">

**Author:** [@R.Achmann](https://forums.unrealengine.com/u/R.Achmann)\
**Replies:** 0\
**Last updated:** [February 25, 2018, 2:10pm UTC](https://forums.unrealengine.com/t/bt-move-to-after-eqs-randomly-fails/418293 "2018-02-25T14:10:08Z")

</div>

4.18.3 actually and this is based on the “Making Game Ready AI” tutorial that Ian and Alexander were doing. So, I have a AI BT and use an EQS to find good and bad food. This is strange as most times it works fine, but …

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

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