# AI

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

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

**Page:** 45

---

## [How to find the closest character to a target actor using the nav system?](https://forums.unrealengine.com/t/how-to-find-the-closest-character-to-a-target-actor-using-the-nav-system/613156)

<div class="topic-metadata">

**Author:** [@pandoux](https://forums.unrealengine.com/u/pandoux)\
**Replies:** 2\
**Last updated:** [August 6, 2022, 6:39am UTC](https://forums.unrealengine.com/t/how-to-find-the-closest-character-to-a-target-actor-using-the-nav-system/613156 "2022-08-06T06:39:04Z")

</div>

Hi, I am looking for a way to find the closest character to a target actor on the path of the navigation system, i.e I don’t want to use the “GetDistanceTo” method because character may be closer to the target in distan…

---

## [Is it a bug? Services are not executed when no valid tasks unless they are on the top-most node](https://forums.unrealengine.com/t/is-it-a-bug-services-are-not-executed-when-no-valid-tasks-unless-they-are-on-the-top-most-node/594055)

<div class="topic-metadata">

**Author:** [@NorlinGames](https://forums.unrealengine.com/u/NorlinGames)\
**Replies:** 1\
**Last updated:** [August 6, 2022, 6:35am UTC](https://forums.unrealengine.com/t/is-it-a-bug-services-are-not-executed-when-no-valid-tasks-unless-they-are-on-the-top-most-node/594055 "2022-08-06T06:35:42Z")

</div>

Is it bug with AI or working by design? The same is both for UE4 & UE5 Case 1: Case 2: Description: The task is blocked by the decorator The service will unblock the decorator on tick (Receive Tick AI) Resul…

---

## [Blueprint Services doesn't get executed](https://forums.unrealengine.com/t/blueprint-services-doesnt-get-executed/595996)

<div class="topic-metadata">

**Author:** [@Hanayosu1](https://forums.unrealengine.com/u/Hanayosu1)\
**Replies:** 5\
**Last updated:** [August 6, 2022, 6:33am UTC](https://forums.unrealengine.com/t/blueprint-services-doesnt-get-executed/595996 "2022-08-06T06:33:07Z")

</div>

I am trying to create a checking mechanism to check whether my controlled main character is alive before executing the chasing mechanism. But when I try to run it, it seems the blueprint services didn’t get executed. I t…

---

## [How to AI select path safer/far from player?](https://forums.unrealengine.com/t/how-to-ai-select-path-safer-far-from-player/407510)

<div class="topic-metadata">

**Author:** [@Vaheva](https://forums.unrealengine.com/u/Vaheva)\
**Replies:** 4\
**Last updated:** [August 6, 2022, 6:27am UTC](https://forums.unrealengine.com/t/how-to-ai-select-path-safer-far-from-player/407510 "2022-08-06T06:27:25Z")

</div>

Hello I have simple covering system EQS Query based. It working - ai can find and go to cover/safe place. However AI selecting mostly path near player even, when path is not best (cost etc), where should select more saf…

---

## [UE5 Smart Objects - How to access Smart Object itself from AI character?](https://forums.unrealengine.com/t/ue5-smart-objects-how-to-access-smart-object-itself-from-ai-character/621419)

<div class="topic-metadata">

**Author:** [@Sumo\_RGreen](https://forums.unrealengine.com/u/Sumo_RGreen)\
**Replies:** 0\
**Last updated:** [August 4, 2022, 4:34pm UTC](https://forums.unrealengine.com/t/ue5-smart-objects-how-to-access-smart-object-itself-from-ai-character/621419 "2022-08-04T16:34:16Z")

</div>

Hi guys, I’m using the experimental plugin “Smart Objects” for some AI prototyping and I have an issue trying to find access to a smart object blueprint from the logic I have. Anyone have any ideas on how to do that? I …

---

## [How to use Interface with Behaviour Tree](https://forums.unrealengine.com/t/how-to-use-interface-with-behaviour-tree/620315)

<div class="topic-metadata">

**Author:** [@fosos](https://forums.unrealengine.com/u/fosos)\
**Replies:** 9\
**Last updated:** [August 4, 2022, 6:17am UTC](https://forums.unrealengine.com/t/how-to-use-interface-with-behaviour-tree/620315 "2022-08-04T06:17:21Z")

</div>

Hi All! I’m currently making a behavior tree for a coop game I’ve started. I want my AI to interact with Items in the level. I currently have an Interact Interface for items and an Interact Task for the tree. I want th…

---

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

<div class="topic-metadata">

**Author:** [@Emil\_J](https://forums.unrealengine.com/u/Emil_J)\
**Replies:** 14\
**Last updated:** [August 4, 2022, 12:21am UTC](https://forums.unrealengine.com/t/ai-performance/512499 "2022-08-04T00:21:24Z")

</div>

So I’m having some issues with performance with my RTS. As soon as the soldiers start to move the performance tanks. Moving the camera around becomes sluggish and choppy. And after searching for a solution I haven’t fou…

---

## [How destroy actor works?](https://forums.unrealengine.com/t/how-destroy-actor-works/620200)

<div class="topic-metadata">

**Author:** [@MaroonBerats](https://forums.unrealengine.com/u/MaroonBerats)\
**Replies:** 4\
**Last updated:** [August 3, 2022, 11:11pm UTC](https://forums.unrealengine.com/t/how-destroy-actor-works/620200 "2022-08-03T23:11:58Z")

</div>

Hi all I have a question I am learning unreal engine for one year today I stuck in a problem I want to know how unreal made this I have two classes one is A that is inherit from Actor and other is B that is inherit from …

---

## [Navigation around pawns that are dynamic obstacles](https://forums.unrealengine.com/t/navigation-around-pawns-that-are-dynamic-obstacles/453413)

<div class="topic-metadata">

**Author:** [@LordStuff](https://forums.unrealengine.com/u/LordStuff)\
**Replies:** 2\
**Last updated:** [August 2, 2022, 1:16pm UTC](https://forums.unrealengine.com/t/navigation-around-pawns-that-are-dynamic-obstacles/453413 "2022-08-02T13:16:34Z")

</div>

Hi there! I don’t know if I understood the meaning of these settings correctly but: I have a pawn “Minion” with an AI controller that can be commanded to move, using the MoveToLocation node. Minions and the player cha…

---

## [Add A Texture Object from Material Expression Output](https://forums.unrealengine.com/t/add-a-texture-object-from-material-expression-output/619576)

<div class="topic-metadata">

**Author:** [@LitTwilight](https://forums.unrealengine.com/u/LitTwilight)\
**Replies:** 0\
**Last updated:** [August 2, 2022, 7:33am UTC](https://forums.unrealengine.com/t/add-a-texture-object-from-material-expression-output/619576 "2022-08-02T07:33:03Z")

</div>

I trying to build my own Advance Material Output just like Single Layer Water did.And I hope to directly push some information without artist to write complex HLSL in editor.So i try to connect the Texture Object and use…

---

## [AI loses sight perception continuously when using Move To node](https://forums.unrealengine.com/t/ai-loses-sight-perception-continuously-when-using-move-to-node/478595)

<div class="topic-metadata">

**Author:** [@C64debug](https://forums.unrealengine.com/u/C64debug)\
**Replies:** 16\
**Last updated:** [August 2, 2022, 3:52am UTC](https://forums.unrealengine.com/t/ai-loses-sight-perception-continuously-when-using-move-to-node/478595 "2022-08-02T03:52:10Z")

</div>

I have an issue where the On Target Perception Event of the AI Perception component on the controller gets called continuously with the sight stimuli’s Successfully sensed value switching quickly from true to false. I’m…

---

## [Navmesh, mixing step heights?](https://forums.unrealengine.com/t/navmesh-mixing-step-heights/618964)

<div class="topic-metadata">

**Author:** [@Graylord](https://forums.unrealengine.com/u/Graylord)\
**Replies:** 1\
**Last updated:** [August 1, 2022, 3:08pm UTC](https://forums.unrealengine.com/t/navmesh-mixing-step-heights/618964 "2022-08-01T15:08:03Z")

</div>

Hey! I have a question about navmeshes and using AIs of different types. In my level, I have pitfalls that the my floating AIs ignore, (I’ve simply added a collision mesh that the navmesh collides with, but not the play…

---

## [Problems with VSCode. UE5](https://forums.unrealengine.com/t/problems-with-vscode-ue5/611732)

<div class="topic-metadata">

**Author:** [@Username0520](https://forums.unrealengine.com/u/Username0520)\
**Replies:** 1\
**Last updated:** [August 1, 2022, 10:58am UTC](https://forums.unrealengine.com/t/problems-with-vscode-ue5/611732 "2022-08-01T10:58:15Z")

</div>

Hello. I used Visual Studio 22, it worked correctly. Installed VSCode, chose it in Source Code in the engine, installed all needful languages, add-ons in VSCode. Open classes and it can’t find coreminimal.h.

---

## ["Pawn Sense" isnt working , Why?](https://forums.unrealengine.com/t/pawn-sense-isnt-working-why/617305)

<div class="topic-metadata">

**Author:** [@ulanov1707](https://forums.unrealengine.com/u/ulanov1707)\
**Replies:** 1\
**Last updated:** [July 29, 2022, 6:16pm UTC](https://forums.unrealengine.com/t/pawn-sense-isnt-working-why/617305 "2022-07-29T18:16:48Z")

</div>

hey devs , can anyone say why “Pawn Sense” isnt sensing pawns at all ? In my case “Pawn Sense” componet attached into an Actor and placed on the map so there are 2 pawn inside of sense volume , “Only Sense Players” is di…

---

## [Why my AIController Cast Fails?](https://forums.unrealengine.com/t/why-my-aicontroller-cast-fails/616516)

<div class="topic-metadata">

**Author:** [@ulanov1707](https://forums.unrealengine.com/u/ulanov1707)\
**Replies:** 1\
**Last updated:** [July 28, 2022, 5:58pm UTC](https://forums.unrealengine.com/t/why-my-aicontroller-cast-fails/616516 "2022-07-28T17:58:49Z")

</div>

hey devs , can someone please tell me why my Ai controller cast fails ,and it is NULL ? I have set AI Controller in Details pannel , Auto Possess is disabled but cast still fails and "Display name " is NULL , any reason…

---

## [How to take the value of a variable from another C++ class](https://forums.unrealengine.com/t/how-to-take-the-value-of-a-variable-from-another-c-class/547038)

<div class="topic-metadata">

**Author:** [@ErikFireLord](https://forums.unrealengine.com/u/ErikFireLord)\
**Replies:** 1\
**Last updated:** [July 28, 2022, 6:54am UTC](https://forums.unrealengine.com/t/how-to-take-the-value-of-a-variable-from-another-c-class/547038 "2022-07-28T06:54:00Z")

</div>

I have a C++ Character class and a C++ AnimInstance class. I want to pass the Velocity value from Character to AnimInstance. Please tell me how to do it. I have tried the options I found on this forum, but they are only …

---

## [How do you get to use the nodes? It's not letting me have access to them.](https://forums.unrealengine.com/t/how-do-you-get-to-use-the-nodes-its-not-letting-me-have-access-to-them/615917)

<div class="topic-metadata">

**Author:** [@uthinkuknowm3](https://forums.unrealengine.com/u/uthinkuknowm3)\
**Replies:** 2\
**Last updated:** [July 28, 2022, 4:23am UTC](https://forums.unrealengine.com/t/how-do-you-get-to-use-the-nodes-its-not-letting-me-have-access-to-them/615917 "2022-07-28T04:23:28Z")

</div>

I’ve just started using Unreal Engine and I came across this. Please help.

---

## [NavMesh Tile Height and Nav Area Behaviour](https://forums.unrealengine.com/t/navmesh-tile-height-and-nav-area-behaviour/608516)

<div class="topic-metadata">

**Author:** [@dowhilefor](https://forums.unrealengine.com/u/dowhilefor)\
**Replies:** 1\
**Last updated:** [July 27, 2022, 3:08pm UTC](https://forums.unrealengine.com/t/navmesh-tile-height-and-nav-area-behaviour/608516 "2022-07-27T15:08:15Z")

</div>

Hey everyone, so i’m a bit puzzled about the following behaviour: as you can see, my ai agents are punching a hole in the navmesh (to fix issues with the detour crowd avoidance), which triggers a rebuild…

---

## [Huge performance drop on moving only 4 AI. (using move to location or actor in a Behavior Tree)](https://forums.unrealengine.com/t/huge-performance-drop-on-moving-only-4-ai-using-move-to-location-or-actor-in-a-behavior-tree/614473)

<div class="topic-metadata">

**Author:** [@darref](https://forums.unrealengine.com/u/darref)\
**Replies:** 1\
**Last updated:** [July 27, 2022, 1:24pm UTC](https://forums.unrealengine.com/t/huge-performance-drop-on-moving-only-4-ai-using-move-to-location-or-actor-in-a-behavior-tree/614473 "2022-07-27T13:24:35Z")

</div>

Hello, i have serious framerate drops when my AI are simply using “Move to location or actor” node ine a BT task. I have tried everything: Move the AIs in the persisent level. Move the Ais in the same sublevel as the …

---

## [Unreal crash when trying to line trace with camera](https://forums.unrealengine.com/t/unreal-crash-when-trying-to-line-trace-with-camera/614241)

<div class="topic-metadata">

**Author:** [@shotty46290](https://forums.unrealengine.com/u/shotty46290)\
**Replies:** 4\
**Last updated:** [July 26, 2022, 6:00pm UTC](https://forums.unrealengine.com/t/unreal-crash-when-trying-to-line-trace-with-camera/614241 "2022-07-26T18:00:40Z")

</div>

When I try to get my camera for my line trace the engine crashes with an access violation why is this? If I try to line trace from the mesh or the spring arm it goes up and to the right in a weird direction.

---

## [Is there a windowed border less mode? (simple question)](https://forums.unrealengine.com/t/is-there-a-windowed-border-less-mode-simple-question/318375)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_adc3f730](https://forums.unrealengine.com/u/anonymous_user_adc3f730)\
**Replies:** 10\
**Last updated:** [July 24, 2022, 12:09am UTC](https://forums.unrealengine.com/t/is-there-a-windowed-border-less-mode-simple-question/318375 "2022-07-24T00:09:34Z")

</div>

I know there a windowed and full screen mode but is there a windowed border less mode?

---

## [AI Smooth Rotation](https://forums.unrealengine.com/t/ai-smooth-rotation/612262)

<div class="topic-metadata">

**Author:** [@ZanettiGameplay](https://forums.unrealengine.com/u/ZanettiGameplay)\
**Replies:** 1\
**Last updated:** [July 23, 2022, 6:33am UTC](https://forums.unrealengine.com/t/ai-smooth-rotation/612262 "2022-07-23T06:33:43Z")

</div>

Guys, how can I adjust for smooth rotation on my artificial intelligence? In the video below you can see the rotation movement

---

## [Nearest point On navigation mesh](https://forums.unrealengine.com/t/nearest-point-on-navigation-mesh/465034)

<div class="topic-metadata">

**Author:** [@AAriyAA](https://forums.unrealengine.com/u/AAriyAA)\
**Replies:** 2\
**Last updated:** [July 21, 2022, 5:35pm UTC](https://forums.unrealengine.com/t/nearest-point-on-navigation-mesh/465034 "2022-07-21T17:35:06Z")

</div>

if I have a location (ai or character) outside Nav mesh, how can I find the nearest point from the location on nav-mesh?

---

## [Run EQS Query](https://forums.unrealengine.com/t/run-eqs-query/338005)

<div class="topic-metadata">

**Author:** [@Aussiemandias](https://forums.unrealengine.com/u/Aussiemandias)\
**Replies:** 8\
**Last updated:** [July 21, 2022, 3:36pm UTC](https://forums.unrealengine.com/t/run-eqs-query/338005 "2022-07-21T15:36:16Z")

</div>

Hi guys, I have my EQS query setup and it’s working pretty great in the Behavior Tree. I wanted to run a query VIA blueprint (to spawn enemies) but I can’t seem to workout what to put in the parameter for “Querier”. I …

---

## [EQS System without Behavior Tree](https://forums.unrealengine.com/t/eqs-system-without-behavior-tree/410494)

<div class="topic-metadata">

**Author:** [@HyprogenX](https://forums.unrealengine.com/u/HyprogenX)\
**Replies:** 2\
**Last updated:** [July 21, 2022, 9:07am UTC](https://forums.unrealengine.com/t/eqs-system-without-behavior-tree/410494 "2022-07-21T09:07:53Z")

</div>

Can i use EQS System in blueprint without Behavior Tree? And if it possible; how? Thank you!

---

## [AICharacter not walking along spline](https://forums.unrealengine.com/t/aicharacter-not-walking-along-spline/607789)

<div class="topic-metadata">

**Author:** [@Doeglas](https://forums.unrealengine.com/u/Doeglas)\
**Replies:** 5\
**Last updated:** [July 20, 2022, 12:24pm UTC](https://forums.unrealengine.com/t/aicharacter-not-walking-along-spline/607789 "2022-07-20T12:24:36Z")

</div>

Goodday! I have a simple AI System that should make a character follow along a spline. AI Controller: I did everything this video said: Make an Ai Follow a Spline in Unreal Engine 4 - YouTube Including adding a Na…

---

## [Run EQS Query node does not return any results](https://forums.unrealengine.com/t/run-eqs-query-node-does-not-return-any-results/607770)

<div class="topic-metadata">

**Author:** [@Polysiens](https://forums.unrealengine.com/u/Polysiens)\
**Replies:** 2\
**Last updated:** [July 20, 2022, 10:09am UTC](https://forums.unrealengine.com/t/run-eqs-query-node-does-not-return-any-results/607770 "2022-07-20T10:09:02Z")

</div>

I am trying to run eqs query on the component attached on the character and when I tried to run it I always get false results for locations. I added onQueryFinished bind and checked that the querier is valid and environm…

---

## [The animation AI not turn into idle after complete the task in behavior](https://forums.unrealengine.com/t/the-animation-ai-not-turn-into-idle-after-complete-the-task-in-behavior/608321)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_3315e26f](https://forums.unrealengine.com/u/anonymous_user_3315e26f)\
**Replies:** 2\
**Last updated:** [July 20, 2022, 3:06am UTC](https://forums.unrealengine.com/t/the-animation-ai-not-turn-into-idle-after-complete-the-task-in-behavior/608321 "2022-07-20T03:06:59Z")

</div>

So, I follow this tutorial and it turns out alright but there a problem, when the task in the behavior tree is complete it’s not repeated again in the ‘Attack’ section only stuck in the first section Second is w…

---

## [How to make AI look for other way when the path is blocked?](https://forums.unrealengine.com/t/how-to-make-ai-look-for-other-way-when-the-path-is-blocked/608096)

<div class="topic-metadata">

**Author:** [@Lamaral14](https://forums.unrealengine.com/u/Lamaral14)\
**Replies:** 15\
**Last updated:** [July 20, 2022, 2:00am UTC](https://forums.unrealengine.com/t/how-to-make-ai-look-for-other-way-when-the-path-is-blocked/608096 "2022-07-20T02:00:19Z")

</div>

I have this npc that follows sound lures when they are activated, the way it work is: when the player activates the lure the ai move to that lure location through the shortest path via nav mesh, but sometimes there is o…

---

## [The behavior Tree not play the task](https://forums.unrealengine.com/t/the-behavior-tree-not-play-the-task/607413)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_3315e26f](https://forums.unrealengine.com/u/anonymous_user_3315e26f)\
**Replies:** 1\
**Last updated:** [July 18, 2022, 9:52am UTC](https://forums.unrealengine.com/t/the-behavior-tree-not-play-the-task/607413 "2022-07-18T09:52:30Z")

</div>

I follow this tutorial Some part of the task is not working. I try 1 by 1 to check why and it looked fine then when to connect all of it, only a few it plays the task

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

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