# AI

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

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

**Page:** 19

---

## [EnemyAI](https://forums.unrealengine.com/t/enemyai/1946679)

<div class="topic-metadata">

**Author:** [@renjuo](https://forums.unrealengine.com/u/renjuo)\
**Replies:** 1\
**Last updated:** [July 23, 2024, 3:07am UTC](https://forums.unrealengine.com/t/enemyai/1946679 "2024-07-23T03:07:13Z")

</div>

hello, could anyone help me. im struggling with enemy AI. i was making a sideScroller 2D game in UE5. could anyone help me

---

## [Enemy Ai stops moving when lighting is introduced](https://forums.unrealengine.com/t/enemy-ai-stops-moving-when-lighting-is-introduced/1943354)

<div class="topic-metadata">

**Author:** [@Rachaelfloto](https://forums.unrealengine.com/u/Rachaelfloto)\
**Replies:** 0\
**Last updated:** [July 19, 2024, 7:29pm UTC](https://forums.unrealengine.com/t/enemy-ai-stops-moving-when-lighting-is-introduced/1943354 "2024-07-19T19:29:28Z")

</div>

I am creating a 3d horror game and I have an enemy AI that moves to the player when the player is not looking (much like coilheads in lethal) and i was using that to make sure that nothing i did interfered with the movem…

---

## [Spawned AI works, but can't move. Path following: simulation:NOT ACTIVE](https://forums.unrealengine.com/t/spawned-ai-works-but-cant-move-path-following-simulation-not-active/734590)

<div class="topic-metadata">

**Author:** [@Fetisenko](https://forums.unrealengine.com/u/Fetisenko)\
**Replies:** 14\
**Last updated:** [July 19, 2024, 5:40pm UTC](https://forums.unrealengine.com/t/spawned-ai-works-but-cant-move-path-following-simulation-not-active/734590 "2024-07-19T17:40:20Z")

</div>

When I spawn a bunch AI characters, some of them can move, and others can’t. Randomly. Characters, that can’t move, have an active AI, can sense, shoot, rotate, but not move. Spawning slightly above the floor makes no di…

---

## [Bug with "is valid" node](https://forums.unrealengine.com/t/bug-with-is-valid-node/1942563)

<div class="topic-metadata">

**Author:** [@wiking333](https://forums.unrealengine.com/u/wiking333)\
**Replies:** 3\
**Last updated:** [July 19, 2024, 12:46pm UTC](https://forums.unrealengine.com/t/bug-with-is-valid-node/1942563 "2024-07-19T12:46:48Z")

</div>

Hello I have a weird “problem” For some reason when AI tries to spawn unit its invalid (in blueprint it goes through the “IsValid” node where it fails) but when I go, as in picture, from “is Not Valid” to the rest of th…

---

## [What is GridPathAI and all subsequent methods](https://forums.unrealengine.com/t/what-is-gridpathai-and-all-subsequent-methods/259044)

<div class="topic-metadata">

**Author:** [@NikitaPodhornyi](https://forums.unrealengine.com/u/NikitaPodhornyi)\
**Replies:** 2\
**Last updated:** [July 18, 2024, 6:52pm UTC](https://forums.unrealengine.com/t/what-is-gridpathai-and-all-subsequent-methods/259044 "2024-07-18T18:52:59Z")

</div>

Hello all, For the past 2 month, i have been working on a project, and i have made a grid system and A\* pathfinding algorithm, it works well, and dont bog down performance. And now it was time to start doing AI for the …

---

## [Using hyperparameter optimization with Learning agents ](https://forums.unrealengine.com/t/using-hyperparameter-optimization-with-learning-agents/1940127)

<div class="topic-metadata">

**Author:** [@TntistheBomb](https://forums.unrealengine.com/u/TntistheBomb)\
**Replies:** 0\
**Last updated:** [July 17, 2024, 2:09am UTC](https://forums.unrealengine.com/t/using-hyperparameter-optimization-with-learning-agents/1940127 "2024-07-17T02:09:57Z")

</div>

I’m using learning agents 5.3 to solve a complicated physics problem and have spent countless hours tweaking the hyperparameters to no avail. I’ve tried to implement some hyperparameter optimizers but I’m not sure it’s p…

---

## [Brain component stop and start](https://forums.unrealengine.com/t/brain-component-stop-and-start/1939680)

<div class="topic-metadata">

**Author:** [@Alvarobando](https://forums.unrealengine.com/u/Alvarobando)\
**Replies:** 1\
**Last updated:** [July 16, 2024, 4:39pm UTC](https://forums.unrealengine.com/t/brain-component-stop-and-start/1939680 "2024-07-16T16:39:41Z")

</div>

Is posible to stop a behavior tree with the nodes start logic and stop logic, in my proyect i can stop but never go up. I have this code. It is necesary run again the bt or something more?

---

## [How to add second player for IA chasing](https://forums.unrealengine.com/t/how-to-add-second-player-for-ia-chasing/1939508)

<div class="topic-metadata">

**Author:** [@devilman20](https://forums.unrealengine.com/u/devilman20)\
**Replies:** 0\
**Last updated:** [July 16, 2024, 2:11pm UTC](https://forums.unrealengine.com/t/how-to-add-second-player-for-ia-chasing/1939508 "2024-07-16T14:11:04Z")

</div>

I have a coop, this BP Enemy chasse my first player, see the second player but anyway when see the first go on him and let the second, how can i do for fix this? i mean, i need tha this bp chase who have more near

---

## [Get Float Action yielding primarily positive floats](https://forums.unrealengine.com/t/get-float-action-yielding-primarily-positive-floats/1938151)

<div class="topic-metadata">

**Author:** [@Katona](https://forums.unrealengine.com/u/Katona)\
**Replies:** 0\
**Last updated:** [July 15, 2024, 1:13pm UTC](https://forums.unrealengine.com/t/get-float-action-yielding-primarily-positive-floats/1938151 "2024-07-15T13:13:35Z")

</div>

Hey everyone, I am trying to train an agent to play an endless runner game using Learning Agent Plugin. The set up is simple and I use the same principles as in Leaning to Drive tutorial. However, the Get Float Action in…

---

## [How does one properly scale an AI character?](https://forums.unrealengine.com/t/how-does-one-properly-scale-an-ai-character/1938896)

<div class="topic-metadata">

**Author:** [@HeliusCarthaxis](https://forums.unrealengine.com/u/HeliusCarthaxis)\
**Replies:** 3\
**Last updated:** [July 16, 2024, 3:29am UTC](https://forums.unrealengine.com/t/how-does-one-properly-scale-an-ai-character/1938896 "2024-07-16T03:29:09Z")

</div>

Hello all! I have an AI character that I’d like to be able to scale when it’s being spawned. However, my navigation is breaking when I do so past a certain point. I’ve set my nav mesh to accommodate agents taller than w…

---

## [AI doesn't move in packaged game](https://forums.unrealengine.com/t/ai-doesnt-move-in-packaged-game/327887)

<div class="topic-metadata">

**Author:** [@Gabor\_D](https://forums.unrealengine.com/u/Gabor_D)\
**Replies:** 13\
**Last updated:** [July 15, 2024, 12:57am UTC](https://forums.unrealengine.com/t/ai-doesnt-move-in-packaged-game/327887 "2024-07-15T00:57:51Z")

</div>

Hello guys. I’ve recently upgraded my project to 4.8 from 4.7 and now my ai character just doesn’t want to move in the packaged game. There is no problem when playing in the editor. I tried to visualize the navmesh in th…

---

## [Disable aiPerceptionStimuliSource???](https://forums.unrealengine.com/t/disable-aiperceptionstimulisource/1936359)

<div class="topic-metadata">

**Author:** [@Alvarobando](https://forums.unrealengine.com/u/Alvarobando)\
**Replies:** 2\
**Last updated:** [July 13, 2024, 6:24pm UTC](https://forums.unrealengine.com/t/disable-aiperceptionstimulisource/1936359 "2024-07-13T18:24:26Z")

</div>

Hi i have some npc with the actro component aiPerceptionStimuliSource, and i tried to create a pool of that npc for the control of the memory. I create the npcs and try to desactivate everything include the aiPerceptionS…

---

## [How to restart behavior tree while node is running](https://forums.unrealengine.com/t/how-to-restart-behavior-tree-while-node-is-running/1936305)

<div class="topic-metadata">

**Author:** [@ddotge](https://forums.unrealengine.com/u/ddotge)\
**Replies:** 1\
**Last updated:** [July 13, 2024, 6:21pm UTC](https://forums.unrealengine.com/t/how-to-restart-behavior-tree-while-node-is-running/1936305 "2024-07-13T18:21:48Z")

</div>

Hello. I have a question about behavior tree there’s a graph like this. If the target is set, run the left node, otherwise, run the right node. However, if the target is set while the right node is running, I want …

---

## [My AI keeps flickering and glitching ](https://forums.unrealengine.com/t/my-ai-keeps-flickering-and-glitching/1936123)

<div class="topic-metadata">

**Author:** [@TMBlox250](https://forums.unrealengine.com/u/TMBlox250)\
**Replies:** 0\
**Last updated:** [July 13, 2024, 1:06pm UTC](https://forums.unrealengine.com/t/my-ai-keeps-flickering-and-glitching/1936123 "2024-07-13T13:06:17Z")

</div>

So I’m making a zombie AI for my game, and It’s working well! But In one of my levels It just starts flickering and stuttering, by that I mean the AI, not the game itself. But in the other levels It acts fine. I’ve teste…

---

## [Set Focus - AI looking down](https://forums.unrealengine.com/t/set-focus-ai-looking-down/411289)

<div class="topic-metadata">

**Author:** [@Dante6686](https://forums.unrealengine.com/u/Dante6686)\
**Replies:** 9\
**Last updated:** [July 13, 2024, 12:00am UTC](https://forums.unrealengine.com/t/set-focus-ai-looking-down/411289 "2024-07-13T00:00:01Z")

</div>

Hi all. Does anyone know why AI controlled character is looking down at the base of a pawn set to be the focus via ‘set focus’ node? I can’t seem to find a way to control the aiming of the AI characters

---

## [How could I remove or mute the sounds that wildlife makes in a NPC spawner device?](https://forums.unrealengine.com/t/how-could-i-remove-or-mute-the-sounds-that-wildlife-makes-in-a-npc-spawner-device/1935256)

<div class="topic-metadata">

**Author:** [@Fireinfern](https://forums.unrealengine.com/u/Fireinfern)\
**Replies:** 0\
**Last updated:** [July 12, 2024, 3:02pm UTC](https://forums.unrealengine.com/t/how-could-i-remove-or-mute-the-sounds-that-wildlife-makes-in-a-npc-spawner-device/1935256 "2024-07-12T15:02:43Z")

</div>

Npc spawners are a great idea and a great addition to the UEFN toolset. But, the configurations we currrently have are not enough. I was playing with this device and the NPC definition data asset for a while, I noticed t…

---

## [AI wont path for actors spawned after 45sec of play](https://forums.unrealengine.com/t/ai-wont-path-for-actors-spawned-after-45sec-of-play/1925831)

<div class="topic-metadata">

**Author:** [@Loden-Heathen](https://forums.unrealengine.com/u/Loden-Heathen)\
**Replies:** 7\
**Last updated:** [July 11, 2024, 4:55pm UTC](https://forums.unrealengine.com/t/ai-wont-path-for-actors-spawned-after-45sec-of-play/1925831 "2024-07-11T16:55:33Z")

</div>

I have a strange issue. in my setup I have a moba-like map with 3 lanes and spawners at each end that send waves of AI-controlled characters down on a timer When I run in the editor everything works as expected no issu…

---

## [AI Pawn does not hear noise](https://forums.unrealengine.com/t/ai-pawn-does-not-hear-noise/423429)

<div class="topic-metadata">

**Author:** [@NiVer0n](https://forums.unrealengine.com/u/NiVer0n)\
**Replies:** 6\
**Last updated:** [July 9, 2024, 4:47am UTC](https://forums.unrealengine.com/t/ai-pawn-does-not-hear-noise/423429 "2024-07-09T04:47:30Z")

</div>

Hi there! I\`m trying to make a system that moves AI to the source of noise, when he hears it. I ran into a problem: AI does not hear the noise the actor makes. I set up the Pawn Sensing in such a way that the source en…

---

## [AI Starts to Shake when gets to location](https://forums.unrealengine.com/t/ai-starts-to-shake-when-gets-to-location/468029)

<div class="topic-metadata">

**Author:** [@Eyeore](https://forums.unrealengine.com/u/Eyeore)\
**Replies:** 6\
**Last updated:** [July 8, 2024, 5:15am UTC](https://forums.unrealengine.com/t/ai-starts-to-shake-when-gets-to-location/468029 "2024-07-08T05:15:10Z")

</div>

Hi, I have an AI, and I use the function AI Move To so the character can move to the location I want, so far no problem, however, when the AI get’s to the location, he starts to tremble, at first, i thought it was beca…

---

## [ implementing the AI](https://forums.unrealengine.com/t/implementing-the-ai/1927721)

<div class="topic-metadata">

**Author:** [@devilman20](https://forums.unrealengine.com/u/devilman20)\
**Replies:** 2\
**Last updated:** [July 7, 2024, 6:21pm UTC](https://forums.unrealengine.com/t/implementing-the-ai/1927721 "2024-07-07T18:21:03Z")

</div>

I have a splitscreen coop project, I’m implementing the AI ​​but it only follows the main character, can you tell me how I can make it detect both the first and second characters?

---

## [How to create a UBTTAsk sub task in C++?](https://forums.unrealengine.com/t/how-to-create-a-ubttask-sub-task-in-c/456460)

<div class="topic-metadata">

**Author:** [@TheSmokingGnu](https://forums.unrealengine.com/u/TheSmokingGnu)\
**Replies:** 2\
**Last updated:** [July 6, 2024, 4:23pm UTC](https://forums.unrealengine.com/t/how-to-create-a-ubttask-sub-task-in-c/456460 "2024-07-06T16:23:01Z")

</div>

I have a melee character with some range, stored in MeleeComponent. I now want to create a task in behaviour tree (using blueprints) that would move to enemy with accepted radius of melee range. Unfortunately, I cannot …

---

## [Is there an example of finding path asynchronously in navigation system](https://forums.unrealengine.com/t/is-there-an-example-of-finding-path-asynchronously-in-navigation-system/338635)

<div class="topic-metadata">

**Author:** [@riskdark](https://forums.unrealengine.com/u/riskdark)\
**Replies:** 2\
**Last updated:** [May 11, 2016, 6:39pm UTC](https://forums.unrealengine.com/t/is-there-an-example-of-finding-path-asynchronously-in-navigation-system/338635 "2016-05-11T18:39:02Z")

</div>

I’m recently studying the source code about AI in UE4, and I notice UE4 seems to have a navigation System supporting finding path asynchronously(Because I find a function called “FindPathAsync” in NavigationSytem.cpp),…

---

## [Print String stops working when we toggle on/off AI debug](https://forums.unrealengine.com/t/print-string-stops-working-when-we-toggle-on-off-ai-debug/388647)

<div class="topic-metadata">

**Author:** [@A.SISODIYA](https://forums.unrealengine.com/u/A.SISODIYA)\
**Replies:** 6\
**Last updated:** [July 5, 2024, 2:52pm UTC](https://forums.unrealengine.com/t/print-string-stops-working-when-we-toggle-on-off-ai-debug/388647 "2024-07-05T14:52:55Z")

</div>

Steps to recreate Turn on EQS (Experimental ) Make an AI with Perception Component added Add Nav Volume Add AI\_Character to Level Simulate or Play and turn on AI debug Press Esc and again play/ simulate Print string w…

---

## [anyon konw how to debug state tree ?](https://forums.unrealengine.com/t/anyon-konw-how-to-debug-state-tree/1927467)

<div class="topic-metadata">

**Author:** [@\_jiji](https://forums.unrealengine.com/u/_jiji)\
**Replies:** 0\
**Last updated:** [July 5, 2024, 12:37pm UTC](https://forums.unrealengine.com/t/anyon-konw-how-to-debug-state-tree/1927467 "2024-07-05T12:37:29Z")

</div>

i have only one enemy actor in the world ,but when i select the debug drop-down ,it show many actor is running the task, and the list will change all the time ,it is not fix ,it change so fast ,i can event catch up…

---

## [Two different enemy AI to both attack the player](https://forums.unrealengine.com/t/two-different-enemy-ai-to-both-attack-the-player/1922135)

<div class="topic-metadata">

**Author:** [@DishonoredBrit](https://forums.unrealengine.com/u/DishonoredBrit)\
**Replies:** 7\
**Last updated:** [July 5, 2024, 10:04am UTC](https://forums.unrealengine.com/t/two-different-enemy-ai-to-both-attack-the-player/1922135 "2024-07-05T10:04:17Z")

</div>

Hi everyone, i am very new to Unreal Engine. I have been following a video tutorial to get started on an idea for a horror game, i am trying to get two different enemy AI’s to both attack when approaching the character. …

---

## [How do I make the nav volumes work with a sphere?](https://forums.unrealengine.com/t/how-do-i-make-the-nav-volumes-work-with-a-sphere/630533)

<div class="topic-metadata">

**Author:** [@WolfTechRob](https://forums.unrealengine.com/u/WolfTechRob)\
**Replies:** 2\
**Last updated:** [July 4, 2024, 7:36pm UTC](https://forums.unrealengine.com/t/how-do-i-make-the-nav-volumes-work-with-a-sphere/630533 "2024-07-04T19:36:20Z")

</div>

Any tips for a nav volume that could generate pathing onto a sphere? Seems I can only get the nav volume to project pathing onto horizontal or top-down facing (angled) surfaces, but would like to do that for a sphere/pl…

---

## [How to send a variable to an npc\_behavior class](https://forums.unrealengine.com/t/how-to-send-a-variable-to-an-npc-behavior-class/1926593)

<div class="topic-metadata">

**Author:** [@nachoboy999](https://forums.unrealengine.com/u/nachoboy999)\
**Replies:** 1\
**Last updated:** [July 4, 2024, 3:54pm UTC](https://forums.unrealengine.com/t/how-to-send-a-variable-to-an-npc-behavior-class/1926593 "2024-07-04T15:54:57Z")

</div>

Wondering how to send a variable to an npc\_behavior class. I’ve tried using an editable to a custom device but it didn’t work

---

## [Problem calling custom events from AI behavior tree's task](https://forums.unrealengine.com/t/problem-calling-custom-events-from-ai-behavior-trees-task/413261)

<div class="topic-metadata">

**Author:** [@sounderdisc](https://forums.unrealengine.com/u/sounderdisc)\
**Replies:** 20\
**Last updated:** [July 4, 2024, 6:56am UTC](https://forums.unrealengine.com/t/problem-calling-custom-events-from-ai-behavior-trees-task/413261 "2024-07-04T06:56:24Z")

</div>

I have custom events for my two ai characters, RobotShooter and RobotCharger, which are both children of RobotParent and have their own custom event called “AttackPlayer.” My ai behavior tree works perfectly except for a…

---

## [How do I run Custom Events of a character from Inside a Behaviour Tree](https://forums.unrealengine.com/t/how-do-i-run-custom-events-of-a-character-from-inside-a-behaviour-tree/261749)

<div class="topic-metadata">

**Author:** [@JamieMarshallCPL](https://forums.unrealengine.com/u/JamieMarshallCPL)\
**Replies:** 2\
**Last updated:** [July 4, 2024, 6:26am UTC](https://forums.unrealengine.com/t/how-do-i-run-custom-events-of-a-character-from-inside-a-behaviour-tree/261749 "2024-07-04T06:26:25Z")

</div>

Hi all, So right now i’ve got a little behaviour tree, that switches actions depending on the value of an enum (Cycling between idle, attack and patrol actions right now) When it goes down the attack route, I want it t…

---

## [How to Claim Smart Objects in Blueprint 5.4](https://forums.unrealengine.com/t/how-to-claim-smart-objects-in-blueprint-5-4/1925811)

<div class="topic-metadata">

**Author:** [@thejerenator](https://forums.unrealengine.com/u/thejerenator)\
**Replies:** 1\
**Last updated:** [July 3, 2024, 11:24pm UTC](https://forums.unrealengine.com/t/how-to-claim-smart-objects-in-blueprint-5-4/1925811 "2024-07-03T23:24:25Z")

</div>

It seems 5.4 changed how smart object claiming works. It no longer shows anything regarding claiming. How do I claim a smart object in blueprint?

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

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