# AI

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

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

**Page:** 49

---

## [How to build an enemy from scratch?](https://forums.unrealengine.com/t/how-to-build-an-enemy-from-scratch/295770)

<div class="topic-metadata">

**Author:** [@BovineWars](https://forums.unrealengine.com/u/BovineWars)\
**Replies:** 1\
**Last updated:** [April 14, 2022, 3:01am UTC](https://forums.unrealengine.com/t/how-to-build-an-enemy-from-scratch/295770 "2022-04-14T03:01:45Z")

</div>

I have found a couple tutorials about creating Enemy AI, however, they all seem to use the default or pre-made characters. I would like to know how to set up an enemy character from scratch in a new project (i.e. prepare…

---

## [Modeling with C++ and Create AI](https://forums.unrealengine.com/t/modeling-with-c-and-create-ai/527384)

<div class="topic-metadata">

**Author:** [@archishahbazi](https://forums.unrealengine.com/u/archishahbazi)\
**Replies:** 0\
**Last updated:** [April 13, 2022, 5:05pm UTC](https://forums.unrealengine.com/t/modeling-with-c-and-create-ai/527384 "2022-04-13T17:05:38Z")

</div>

Who knows about that Is it possible to model with C++ in Unreal Engine and create an AI and Generative Design

---

## [How can i modify the param name in EQS node](https://forums.unrealengine.com/t/how-can-i-modify-the-param-name-in-eqs-node/521906)

<div class="topic-metadata">

**Author:** [@kissUE](https://forums.unrealengine.com/u/kissUE)\
**Replies:** 10\
**Last updated:** [April 13, 2022, 2:24am UTC](https://forums.unrealengine.com/t/how-can-i-modify-the-param-name-in-eqs-node/521906 "2022-04-13T02:24:06Z")

</div>

---

## [How to get mesh location in c++? ](https://forums.unrealengine.com/t/how-to-get-mesh-location-in-c/526562)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_3cea6645](https://forums.unrealengine.com/u/anonymous_user_3cea6645)\
**Replies:** 0\
**Last updated:** [April 13, 2022, 2:04am UTC](https://forums.unrealengine.com/t/how-to-get-mesh-location-in-c/526562 "2022-04-13T02:04:08Z")

</div>

Hello,everyone,i use spline in BP to control the static mesh moving,i also can use get component bounds in the BP to get the mesh’s current location,but i don’t know how to get the location(also the bounding box) in the…

---

## [AI bumping into each other](https://forums.unrealengine.com/t/ai-bumping-into-each-other/524614)

<div class="topic-metadata">

**Author:** [@RenkyysDev](https://forums.unrealengine.com/u/RenkyysDev)\
**Replies:** 5\
**Last updated:** [April 11, 2022, 8:18pm UTC](https://forums.unrealengine.com/t/ai-bumping-into-each-other/524614 "2022-04-11T20:18:01Z")

</div>

Hey, I just need a little hint. How to make it so the AI´s dont bump into each other when getting to a certain location? I want to keep it as simple as possible. I was thinking of something that when the AI hits other AI…

---

## [Movement Component spawn 2 actors on client](https://forums.unrealengine.com/t/movement-component-spawn-2-actors-on-client/517331)

<div class="topic-metadata">

**Author:** [@Napimel](https://forums.unrealengine.com/u/Napimel)\
**Replies:** 3\
**Last updated:** [April 9, 2022, 9:27pm UTC](https://forums.unrealengine.com/t/movement-component-spawn-2-actors-on-client/517331 "2022-04-09T21:27:48Z")

</div>

Hello there i found an odd problem today, i created an actor Pawn and Character, when i spawn them to make test Server / Client replication, client gets 2 copy of the spawned actor, after few hours of testing i remove t…

---

## [AI can't chase player while using a navlink proxy to enter a room, he gets stuck](https://forums.unrealengine.com/t/ai-cant-chase-player-while-using-a-navlink-proxy-to-enter-a-room-he-gets-stuck/522209)

<div class="topic-metadata">

**Author:** [@GhostWarrior13](https://forums.unrealengine.com/u/GhostWarrior13)\
**Replies:** 0\
**Last updated:** [April 9, 2022, 7:44pm UTC](https://forums.unrealengine.com/t/ai-cant-chase-player-while-using-a-navlink-proxy-to-enter-a-room-he-gets-stuck/522209 "2022-04-09T19:44:14Z")

</div>

I have an AI that roams around and chases the player when seen however when the player runs into a room this forces the AI to use a navlink to enter the room through a door. My AI gets stuck when trying to chase the play…

---

## [Navigation invoker](https://forums.unrealengine.com/t/navigation-invoker/521698)

<div class="topic-metadata">

**Author:** [@Td1](https://forums.unrealengine.com/u/Td1)\
**Replies:** 0\
**Last updated:** [April 9, 2022, 12:19pm UTC](https://forums.unrealengine.com/t/navigation-invoker/521698 "2022-04-09T12:19:19Z")

</div>

when i spawn an actor that has a navigation invoker i think the navigation invoker doesnt spawn with it how can i fix this

---

## [How to have a character uncontrolled and possess by an AI controller? ](https://forums.unrealengine.com/t/how-to-have-a-character-uncontrolled-and-possess-by-an-ai-controller/510394)

<div class="topic-metadata">

**Author:** [@TomatoVampire11](https://forums.unrealengine.com/u/TomatoVampire11)\
**Replies:** 2\
**Last updated:** [April 9, 2022, 10:08am UTC](https://forums.unrealengine.com/t/how-to-have-a-character-uncontrolled-and-possess-by-an-ai-controller/510394 "2022-04-09T10:08:42Z")

</div>

My game has a concept that there are two characters both can be possessed by a player controller, and in game you can have a character controlled and the other using an AI controller. And I can swap to control another ch…

---

## [How to Replicate melee AI?](https://forums.unrealengine.com/t/how-to-replicate-melee-ai/512297)

<div class="topic-metadata">

**Author:** [@Arifin](https://forums.unrealengine.com/u/Arifin)\
**Replies:** 4\
**Last updated:** [April 9, 2022, 3:42am UTC](https://forums.unrealengine.com/t/how-to-replicate-melee-ai/512297 "2022-04-09T03:42:18Z")

</div>

So I followed this tutorial from Ryan Laley to make a monster AI that do melee attacks. So far it works well in single player but i need it to work well in multiplayer as well. How should i replicate this for multiplaye…

---

## [Replication and owner](https://forums.unrealengine.com/t/replication-and-owner/520958)

<div class="topic-metadata">

**Author:** [@Napimel](https://forums.unrealengine.com/u/Napimel)\
**Replies:** 1\
**Last updated:** [April 9, 2022, 1:01am UTC](https://forums.unrealengine.com/t/replication-and-owner/520958 "2022-04-09T01:01:31Z")

</div>

Hello, i try to spawn Ai on map replicated but i get this error. LogActor: Error: SetOwner(): Failed to set ‘BP\_AIMoveTest\_C\_0’ owner of ‘BP\_AIMoveTest\_C\_0’ because it would cause an Owner loop LogActor: Error: SetOwne…

---

## [Question about updating nav mesh](https://forums.unrealengine.com/t/question-about-updating-nav-mesh/520600)

<div class="topic-metadata">

**Author:** [@ALEXCHEN0719](https://forums.unrealengine.com/u/ALEXCHEN0719)\
**Replies:** 0\
**Last updated:** [April 8, 2022, 4:58pm UTC](https://forums.unrealengine.com/t/question-about-updating-nav-mesh/520600 "2022-04-08T16:58:08Z")

</div>

Hello, my game has this map with moving parts. The hexagons will rotate every few seconds. When the hexagon start rotating, I can see there is a huge performance drop since the nav mesh will keep regenerating on runtime…

---

## [AI getting stuck inside NavMesh](https://forums.unrealengine.com/t/ai-getting-stuck-inside-navmesh/520452)

<div class="topic-metadata">

**Author:** [@Onnions1](https://forums.unrealengine.com/u/Onnions1)\
**Replies:** 0\
**Last updated:** [April 8, 2022, 3:05pm UTC](https://forums.unrealengine.com/t/ai-getting-stuck-inside-navmesh/520452 "2022-04-08T15:05:24Z")

</div>

While navigating my AI gets stucks inside the navmesh, there isnt any obstacles in the way or anything but it just stops when it reaches the white lines inside the navmesh Also while simulating and playing the viewer…

---

## [Videos or Courses for AI programming in UE5?](https://forums.unrealengine.com/t/videos-or-courses-for-ai-programming-in-ue5/517329)

<div class="topic-metadata">

**Author:** [@IronGuardian921](https://forums.unrealengine.com/u/IronGuardian921)\
**Replies:** 2\
**Last updated:** [April 8, 2022, 7:17am UTC](https://forums.unrealengine.com/t/videos-or-courses-for-ai-programming-in-ue5/517329 "2022-04-08T07:17:12Z")

</div>

I’ve watched a few videos on basic AI programming. The most I can do is running to a random location. Nothing else works. There’s no training for Unreal 5. The AI programming videos for Unreal 4 dont work in Unreal 5. I …

---

## [I want to create a character that walks infinitly to right(without any destination, say along +yDirection) WHEN I CLICK ON IT.](https://forums.unrealengine.com/t/i-want-to-create-a-character-that-walks-infinitly-to-right-without-any-destination-say-along-ydirection-when-i-click-on-it/519687)

<div class="topic-metadata">

**Author:** [@oleghar](https://forums.unrealengine.com/u/oleghar)\
**Replies:** 1\
**Last updated:** [April 8, 2022, 5:34am UTC](https://forums.unrealengine.com/t/i-want-to-create-a-character-that-walks-infinitly-to-right-without-any-destination-say-along-ydirection-when-i-click-on-it/519687 "2022-04-08T05:34:50Z")

</div>

I want to create a character that walks infinitly to right(without any destination, say along +yDirection) WHEN I CLICK ON IT. I do not know where to start, i think "Move To Location or Actor " does not work, what must i…

---

## [AI won't shoot at player](https://forums.unrealengine.com/t/ai-wont-shoot-at-player/511461)

<div class="topic-metadata">

**Author:** [@HHX1602](https://forums.unrealengine.com/u/HHX1602)\
**Replies:** 8\
**Last updated:** [April 4, 2022, 4:13am UTC](https://forums.unrealengine.com/t/ai-wont-shoot-at-player/511461 "2022-04-04T04:13:09Z")

</div>

So I have set up the AI’s behavior tree that supposes to let the AI attacks player when in sight. But for some reason, the AI would not focus and shoot at the player. Targeting player was made using BP. I can’t t…

---

## [AI Shaky Movement On Slopes On The Client Side](https://forums.unrealengine.com/t/ai-shaky-movement-on-slopes-on-the-client-side/411749)

<div class="topic-metadata">

**Author:** [@YuchenMei](https://forums.unrealengine.com/u/YuchenMei)\
**Replies:** 1\
**Last updated:** [April 3, 2022, 1:04pm UTC](https://forums.unrealengine.com/t/ai-shaky-movement-on-slopes-on-the-client-side/411749 "2022-04-03T13:04:14Z")

</div>

Hi, everyone, I am trying to fix an issue where the AI shakes when walking up/down slopes (looking good on flat grounds). I think it dues to different movement modes on the server side and the client side because I can …

---

## [Server changes map when the round is over. How?](https://forums.unrealengine.com/t/server-changes-map-when-the-round-is-over-how/511987)

<div class="topic-metadata">

**Author:** [@AlexanderN55](https://forums.unrealengine.com/u/AlexanderN55)\
**Replies:** 0\
**Last updated:** [April 2, 2022, 7:51pm UTC](https://forums.unrealengine.com/t/server-changes-map-when-the-round-is-over-how/511987 "2022-04-02T19:51:58Z")

</div>

Hi! So I’m trying to change the map automatically after the round is over. To make an idea of how the game works(it’s pretty basic, like almost every game) There’s a dedicated server who runs everything and people can …

---

## [Any way to adjust Navmesh bounds volume, it's doing a poor job?](https://forums.unrealengine.com/t/any-way-to-adjust-navmesh-bounds-volume-its-doing-a-poor-job/511449)

<div class="topic-metadata">

**Author:** [@Lowenfas](https://forums.unrealengine.com/u/Lowenfas)\
**Replies:** 4\
**Last updated:** [April 2, 2022, 1:55pm UTC](https://forums.unrealengine.com/t/any-way-to-adjust-navmesh-bounds-volume-its-doing-a-poor-job/511449 "2022-04-02T13:55:09Z")

</div>

The terrain in my game is generated in a blueprint and there are a lot of tree meshes which all are Hierarchical instances. The collisions on each mesh are pretty tight to the mesh itself but when the navmesh bounds volu…

---

## [AI keeps trying to move in wrong axis](https://forums.unrealengine.com/t/ai-keeps-trying-to-move-in-wrong-axis/511663)

<div class="topic-metadata">

**Author:** [@Jase2111](https://forums.unrealengine.com/u/Jase2111)\
**Replies:** 0\
**Last updated:** [April 1, 2022, 6:23pm UTC](https://forums.unrealengine.com/t/ai-keeps-trying-to-move-in-wrong-axis/511663 "2022-04-01T18:23:31Z")

</div>

I am working on a side scroller, where it’s played on the y-axis. However, for some reason all my ai characters are not trying to rotate (facing the camera) to move to the player instead of walking right to him. I trie…

---

## [(UE4.27) AI gets stuck on navlink only when chasing the player](https://forums.unrealengine.com/t/ue4-27-ai-gets-stuck-on-navlink-only-when-chasing-the-player/511620)

<div class="topic-metadata">

**Author:** [@GhostWarrior13](https://forums.unrealengine.com/u/GhostWarrior13)\
**Replies:** 0\
**Last updated:** [April 1, 2022, 4:10pm UTC](https://forums.unrealengine.com/t/ue4-27-ai-gets-stuck-on-navlink-only-when-chasing-the-player/511620 "2022-04-01T16:10:30Z")

</div>

I have an AI that roams the level and can open doors and enter through them via navlinks. It works perfectly when in the patrol state but when the AI sees the player and is chasing the player he is unable to use the navl…

---

## [AI Blackboard Based Condition Does not Abort](https://forums.unrealengine.com/t/ai-blackboard-based-condition-does-not-abort/511343)

<div class="topic-metadata">

**Author:** [@EngineerDveloper](https://forums.unrealengine.com/u/EngineerDveloper)\
**Replies:** 1\
**Last updated:** [March 31, 2022, 10:52pm UTC](https://forums.unrealengine.com/t/ai-blackboard-based-condition-does-not-abort/511343 "2022-03-31T22:52:20Z")

</div>

Hello! Curious if anyone knows why a blackboard based condition would not abort itself and continue running even though it failed (see image below). Both AI Debug and behavior tree label the “TargetActor” (object) a…

---

## [Issue that when one AI animation changes, the other AIs does too](https://forums.unrealengine.com/t/issue-that-when-one-ai-animation-changes-the-other-ais-does-too/503205)

<div class="topic-metadata">

**Author:** [@Thecooldude148](https://forums.unrealengine.com/u/Thecooldude148)\
**Replies:** 1\
**Last updated:** [March 30, 2022, 10:49pm UTC](https://forums.unrealengine.com/t/issue-that-when-one-ai-animation-changes-the-other-ais-does-too/503205 "2022-03-30T22:49:03Z")

</div>

The image above shows all the AI zombies moving to the player. The image below shows that when one zombie reaches me and uses the idle animation, all the other AIs use the idle animation when they haven’t reached me y…

---

## [Conditional check delay in decorator](https://forums.unrealengine.com/t/conditional-check-delay-in-decorator/437756)

<div class="topic-metadata">

**Author:** [@MrMcKvarz](https://forums.unrealengine.com/u/MrMcKvarz)\
**Replies:** 1\
**Last updated:** [March 29, 2022, 2:27am UTC](https://forums.unrealengine.com/t/conditional-check-delay-in-decorator/437756 "2022-03-29T02:27:25Z")

</div>

I’m trying to make something happen when a character stops, i.e velocity of its movement component is zero. I have a decorator to perform this check. However, I don’t want it to do anything when the character first spawn…

---

## [Player follow NPC](https://forums.unrealengine.com/t/player-follow-npc/510084)

<div class="topic-metadata">

**Author:** [@XENE45](https://forums.unrealengine.com/u/XENE45)\
**Replies:** 1\
**Last updated:** [March 27, 2022, 8:22pm UTC](https://forums.unrealengine.com/t/player-follow-npc/510084 "2022-03-27T20:22:03Z")

</div>

Hello. I want my NPC to show the player the way and waiting for him if he strays too far from it. I know how to move an AI to a destination but I don’t know how to create the function that waits for the player. Can so…

---

## [Is there a way to make AI pawnsensing radial?](https://forums.unrealengine.com/t/is-there-a-way-to-make-ai-pawnsensing-radial/381040)

<div class="topic-metadata">

**Author:** [@Canti\_Prime](https://forums.unrealengine.com/u/Canti_Prime)\
**Replies:** 4\
**Last updated:** [March 25, 2022, 4:15am UTC](https://forums.unrealengine.com/t/is-there-a-way-to-make-ai-pawnsensing-radial/381040 "2022-03-25T04:15:03Z")

</div>

Trying to make ai go to the players location then do a radial pawn sensing instead of using peripheral vision how can I do this.

---

## [AI Perception Stimuli Source simply not needed?](https://forums.unrealengine.com/t/ai-perception-stimuli-source-simply-not-needed/509156)

<div class="topic-metadata">

**Author:** [@herb64](https://forums.unrealengine.com/u/herb64)\
**Replies:** 3\
**Last updated:** [March 24, 2022, 9:55am UTC](https://forums.unrealengine.com/t/ai-perception-stimuli-source-simply-not-needed/509156 "2022-03-24T09:55:05Z")

</div>

Testing with AI Perception system, it looks to me, like the AI Perception Stimuli Source Component just is not needed at all. I found this playing with Noise - it simply works with only having an AI Perception Component…

---

## [AI perception doesn't work as expected](https://forums.unrealengine.com/t/ai-perception-doesnt-work-as-expected/399158)

<div class="topic-metadata">

**Author:** [@wukakuki](https://forums.unrealengine.com/u/wukakuki)\
**Replies:** 4\
**Last updated:** [March 23, 2022, 3:36pm UTC](https://forums.unrealengine.com/t/ai-perception-doesnt-work-as-expected/399158 "2022-03-23T15:36:29Z")

</div>

I add \[/Script/AIModule.AISense\_Sight\] bAutoRegisterAllPawnsAsSources=false in DefaultEngine.ini and it doesn’t seem to work. AI still can see the pawns without AIPerceptionStimuliComponent. When there are more than 6 p…

---

## [How can I visualize a navmesh for a custom agent?](https://forums.unrealengine.com/t/how-can-i-visualize-a-navmesh-for-a-custom-agent/508892)

<div class="topic-metadata">

**Author:** [@Fraps2020](https://forums.unrealengine.com/u/Fraps2020)\
**Replies:** 1\
**Last updated:** [March 22, 2022, 9:50pm UTC](https://forums.unrealengine.com/t/how-can-i-visualize-a-navmesh-for-a-custom-agent/508892 "2022-03-22T21:50:02Z")

</div>

Hi, I’ve posted this already in the “General Discussion” section to no avail. I apologize for the repetition, but I’m doing it out of desperation, hopefully here somebody could come to my rescue :slight\_smile: Here’s t…

---

## [Navigation Mesh and NPC](https://forums.unrealengine.com/t/navigation-mesh-and-npc/508962)

<div class="topic-metadata">

**Author:** [@i\_Byte](https://forums.unrealengine.com/u/i_Byte)\
**Replies:** 0\
**Last updated:** [March 22, 2022, 6:27pm UTC](https://forums.unrealengine.com/t/navigation-mesh-and-npc/508962 "2022-03-22T18:27:07Z")

</div>

Why does the NPC in the picture on the left affect the navigation mesh, but in the picture on the right it doesn’t? Project settings are the same. In the first case, the NPC cannot move around the level.

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

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