# AI

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

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

**Page:** 37

---

## [Spawn AIFrom Class Crashes only Shipping Package](https://forums.unrealengine.com/t/spawn-aifrom-class-crashes-only-shipping-package/770369)

<div class="topic-metadata">

**Author:** [@Stupidu](https://forums.unrealengine.com/u/Stupidu)\
**Replies:** 0\
**Last updated:** [February 14, 2023, 8:17am UTC](https://forums.unrealengine.com/t/spawn-aifrom-class-crashes-only-shipping-package/770369 "2023-02-14T08:17:51Z")

</div>

When i try to spawn Ai in SHIPPING - it crashes, otherwise(In Debug package or changed to SpawnActor) - it works Fatal error! Unhandled Exception: EXCEPTION\_ACCESS\_VIOLATION reading address 0x0000000000000020 0x00007f…

---

## [Which units are font sizes measured in?](https://forums.unrealengine.com/t/which-units-are-font-sizes-measured-in/384995)

<div class="topic-metadata">

**Author:** [@edwinbradford](https://forums.unrealengine.com/u/edwinbradford)\
**Replies:** 7\
**Last updated:** [February 14, 2023, 3:28am UTC](https://forums.unrealengine.com/t/which-units-are-font-sizes-measured-in/384995 "2023-02-14T03:28:47Z")

</div>

To the right of the Font drop down selection box in Unreal there is a font size field. What units are these font sizes measured in because it doesn’t appear to be pixels as we expected for 2D UI assets. When we enter the…

---

## [How to move AI when player moves through collsion box?](https://forums.unrealengine.com/t/how-to-move-ai-when-player-moves-through-collsion-box/769612)

<div class="topic-metadata">

**Author:** [@rlaghrud1234](https://forums.unrealengine.com/u/rlaghrud1234)\
**Replies:** 0\
**Last updated:** [February 13, 2023, 8:47am UTC](https://forums.unrealengine.com/t/how-to-move-ai-when-player-moves-through-collsion-box/769612 "2023-02-13T08:47:43Z")

</div>

Hello, I’m a newbie of UE4. I have some problem making algorithm of moving AI. What I want to make is, when vr character overlaps actor(collision box), AI walks to a target point. I made some blueprints, but it doesn…

---

## [AI Character: No owning connection](https://forums.unrealengine.com/t/ai-character-no-owning-connection/414237)

<div class="topic-metadata">

**Author:** [@Napoleonite](https://forums.unrealengine.com/u/Napoleonite)\
**Replies:** 5\
**Last updated:** [February 11, 2023, 3:25pm UTC](https://forums.unrealengine.com/t/ai-character-no-owning-connection/414237 "2023-02-11T15:25:07Z")

</div>

When calling a server RPC on a character that is controlled by an AIController (like an RTS unit) will throw the following warning: LogNet: Warning: UIpNetDriver::ProcessRemoteFunction: No owning connection for actor …

---

## [AI playing the walking animation when not moving](https://forums.unrealengine.com/t/ai-playing-the-walking-animation-when-not-moving/768150)

<div class="topic-metadata">

**Author:** [@M33TO1H1N](https://forums.unrealengine.com/u/M33TO1H1N)\
**Replies:** 3\
**Last updated:** [February 10, 2023, 5:59pm UTC](https://forums.unrealengine.com/t/ai-playing-the-walking-animation-when-not-moving/768150 "2023-02-10T17:59:55Z")

</div>

Hey! I have an issue with my AI, to which I can’t seem to find a fix for. For some reason, the AI plays a walking animation even though it doesn’t move. Everything should be fine in the AnimBP as well, I’ve m…

---

## [How to stop Ai from walking into walls and getting stuck?](https://forums.unrealengine.com/t/how-to-stop-ai-from-walking-into-walls-and-getting-stuck/443567)

<div class="topic-metadata">

**Author:** [@Aikirob](https://forums.unrealengine.com/u/Aikirob)\
**Replies:** 5\
**Last updated:** [February 9, 2023, 7:46am UTC](https://forums.unrealengine.com/t/how-to-stop-ai-from-walking-into-walls-and-getting-stuck/443567 "2023-02-09T07:46:52Z")

</div>

Hay folks, I need a hand working out why my navmesh isn’t allowing my ai to move to the player, they get stuck in places instead of finding a path around to the objective.

---

## [AI's destruction of Actor](https://forums.unrealengine.com/t/ais-destruction-of-actor/764619)

<div class="topic-metadata">

**Author:** [@ALI\_EREN](https://forums.unrealengine.com/u/ALI_EREN)\
**Replies:** 0\
**Last updated:** [February 6, 2023, 8:44am UTC](https://forums.unrealengine.com/t/ais-destruction-of-actor/764619 "2023-02-06T08:44:07Z")

</div>

Hello, I’d like to make a simple AI, similar to Fortnite’s STW where the AI needs to walk towards the main base but players may have built structures blocking the way, and the AI needs to break these structures (only tho…

---

## [Can’t get an AI character to spawn in my world](https://forums.unrealengine.com/t/can-t-get-an-ai-character-to-spawn-in-my-world/764390)

<div class="topic-metadata">

**Author:** [@Safowan](https://forums.unrealengine.com/u/Safowan)\
**Replies:** 0\
**Last updated:** [February 6, 2023, 12:48am UTC](https://forums.unrealengine.com/t/can-t-get-an-ai-character-to-spawn-in-my-world/764390 "2023-02-06T00:48:29Z")

</div>

I’m trying to Spawn a simple custom made blueprint AI Spider using unreal “Spawn Actor from Class” blueprint node on “Target Point” place actor in the world but it isn’t spawning at all, If I replace the AI Spider with …

---

## [Behavior Tree not accepting Vector](https://forums.unrealengine.com/t/behavior-tree-not-accepting-vector/748980)

<div class="topic-metadata">

**Author:** [@ArtistGamedev](https://forums.unrealengine.com/u/ArtistGamedev)\
**Replies:** 1\
**Last updated:** [February 3, 2023, 7:30am UTC](https://forums.unrealengine.com/t/behavior-tree-not-accepting-vector/748980 "2023-02-03T07:30:59Z")

</div>

I’m troubleshoot my Behavior Trees and hit a wall. I created a task where I am trying to have my NPC character MoveTo a set vector location (it will be a safe zone in game). If I use GetActorLocation (as seen in top of …

---

## [How to pass variables to Ability?](https://forums.unrealengine.com/t/how-to-pass-variables-to-ability/663010)

<div class="topic-metadata">

**Author:** [@Ztreis](https://forums.unrealengine.com/u/Ztreis)\
**Replies:** 3\
**Last updated:** [February 2, 2023, 7:29pm UTC](https://forums.unrealengine.com/t/how-to-pass-variables-to-ability/663010 "2023-02-02T19:29:06Z")

</div>

Hi! I have an NPC and I want to tell him to use an ability in a certain point. I have troubles figuring out how to pass any params to the ability? For example, I want him to throw a fireball at point A. How do I pass co…

---

## [How to update navigation after something happened?](https://forums.unrealengine.com/t/how-to-update-navigation-after-something-happened/759937)

<div class="topic-metadata">

**Author:** [@M1l0](https://forums.unrealengine.com/u/M1l0)\
**Replies:** 12\
**Last updated:** [February 1, 2023, 3:56pm UTC](https://forums.unrealengine.com/t/how-to-update-navigation-after-something-happened/759937 "2023-02-01T15:56:38Z")

</div>

Hi, I have an AI system, that’s supposed to check if a door is open and if not, open it and walk inside. But the navigation doesn’t work on the doorway. Here’s a demonstration: https://milomb.wistia.com/medias/mzycftl…

---

## [Client-side AI movement, sent from the server](https://forums.unrealengine.com/t/client-side-ai-movement-sent-from-the-server/470862)

<div class="topic-metadata">

**Author:** [@dscottwilson](https://forums.unrealengine.com/u/dscottwilson)\
**Replies:** 1\
**Last updated:** [January 31, 2023, 2:56pm UTC](https://forums.unrealengine.com/t/client-side-ai-movement-sent-from-the-server/470862 "2023-01-31T14:56:59Z")

</div>

Hello. I am making a board-game style game and I want it so that the server tells the client which square to move a character and then it does it. My main issue is that the client doesn’t have an AI controller by default…

---

## [EXCEPTION\_ACCESS\_VIOLATION reading address 0x0000001600000011](https://forums.unrealengine.com/t/exception-access-violation-reading-address-0x0000001600000011/757899)

<div class="topic-metadata">

**Author:** [@Pandanumnums](https://forums.unrealengine.com/u/Pandanumnums)\
**Replies:** 3\
**Last updated:** [January 30, 2023, 5:55am UTC](https://forums.unrealengine.com/t/exception-access-violation-reading-address-0x0000001600000011/757899 "2023-01-30T05:55:02Z")

</div>

Hello, I’m getting this Exception, and I’m not entirely sure what it is. Many of the other Access violation posts have been GPU related, but since none of them have this exact access violation I figured I may as well ask…

---

## [How would I make two AIs avoid following the same path to a target?](https://forums.unrealengine.com/t/how-would-i-make-two-ais-avoid-following-the-same-path-to-a-target/758528)

<div class="topic-metadata">

**Author:** [@TheRealRoboMan0](https://forums.unrealengine.com/u/TheRealRoboMan0)\
**Replies:** 2\
**Last updated:** [January 30, 2023, 4:17am UTC](https://forums.unrealengine.com/t/how-would-i-make-two-ais-avoid-following-the-same-path-to-a-target/758528 "2023-01-30T04:17:59Z")

</div>

Hey all. I want to make two AIs work together to hunt down the player, but I don’t want them to follow the same path. I want one AI to chase the player and another AI to try cutting the player off. How would I go about t…

---

## [AI check if door is open](https://forums.unrealengine.com/t/ai-check-if-door-is-open/759223)

<div class="topic-metadata">

**Author:** [@M1l0](https://forums.unrealengine.com/u/M1l0)\
**Replies:** 3\
**Last updated:** [January 29, 2023, 8:51pm UTC](https://forums.unrealengine.com/t/ai-check-if-door-is-open/759223 "2023-01-29T20:51:34Z")

</div>

Hi, I have a simple AI system. Every time it spawns it has to go to the same location, so I’m not using a behavior tree (I can’t add it after can I?) How do I send another MoveTo after the previous one has finished? A…

---

## [AI avoid hazard/laser](https://forums.unrealengine.com/t/ai-avoid-hazard-laser/758644)

<div class="topic-metadata">

**Author:** [@SmallLebowski](https://forums.unrealengine.com/u/SmallLebowski)\
**Replies:** 3\
**Last updated:** [January 29, 2023, 1:07pm UTC](https://forums.unrealengine.com/t/ai-avoid-hazard-laser/758644 "2023-01-29T13:07:30Z")

</div>

Hi Folks! Is there a way to avoid hazard zones for the AI? There’s a toggleable laserbeam and I just want to ‘tell’ the AI to not enter/cross the beam if the laser is active. Of course I could create a collisionbox with…

---

## [AI not seeing player](https://forums.unrealengine.com/t/ai-not-seeing-player/758281)

<div class="topic-metadata">

**Author:** [@M1l0](https://forums.unrealengine.com/u/M1l0)\
**Replies:** 2\
**Last updated:** [January 28, 2023, 10:09am UTC](https://forums.unrealengine.com/t/ai-not-seeing-player/758281 "2023-01-28T10:09:05Z")

</div>

Hi, I am loosely following this tutorial: Unreal Engine AI with Behavior Trees | Unreal Engine - YouTube I have successfully setup the AI going to random locations, but now I have added an AI Perception component and i…

---

## [Random captureable NPC spawn in set radius around player](https://forums.unrealengine.com/t/random-captureable-npc-spawn-in-set-radius-around-player/667511)

<div class="topic-metadata">

**Author:** [@downofwar5000](https://forums.unrealengine.com/u/downofwar5000)\
**Replies:** 7\
**Last updated:** [January 27, 2023, 7:32pm UTC](https://forums.unrealengine.com/t/random-captureable-npc-spawn-in-set-radius-around-player/667511 "2023-01-27T19:32:43Z")

</div>

Hello, I’m relatively new to unreal engine 5, I’ve created a couple of games and have started a fairly large project I’ve been working on for quite a while now. However, I’ve now reached a point where I’m doing stuff I h…

---

## [OnSeePawn.AddDynamic() will give me a bunch of callstack errors](https://forums.unrealengine.com/t/onseepawn-adddynamic-will-give-me-a-bunch-of-callstack-errors/756796)

<div class="topic-metadata">

**Author:** [@iuliu](https://forums.unrealengine.com/u/iuliu)\
**Replies:** 0\
**Last updated:** [January 25, 2023, 6:00pm UTC](https://forums.unrealengine.com/t/onseepawn-adddynamic-will-give-me-a-bunch-of-callstack-errors/756796 "2023-01-25T18:00:29Z")

</div>

Hi, Here’s the thing, every time I bind a function with OnSeePawn.AddDynamic() I will get a bunch of callstack errors but after that, it will work fine and the binding also works as the pawn will actually run the code i…

---

## [MoveTo always failing in Behavior Tree](https://forums.unrealengine.com/t/moveto-always-failing-in-behavior-tree/756259)

<div class="topic-metadata">

**Author:** [@M1l0](https://forums.unrealengine.com/u/M1l0)\
**Replies:** 0\
**Last updated:** [January 24, 2023, 9:31pm UTC](https://forums.unrealengine.com/t/moveto-always-failing-in-behavior-tree/756259 "2023-01-24T21:31:31Z")

</div>

Hi, I have a basic behavior tree with a key named roam location: Before that, the GetLocationTask is executed, which looks like this: The GetLocation executes successfully, but it never reaches the last wait, as…

---

## [BehaviorTree causing performance drop on actor spawn during RunBehaviorTree in the AIController](https://forums.unrealengine.com/t/behaviortree-causing-performance-drop-on-actor-spawn-during-runbehaviortree-in-the-aicontroller/755615)

<div class="topic-metadata">

**Author:** [@Krileon](https://forums.unrealengine.com/u/Krileon)\
**Replies:** 8\
**Last updated:** [January 24, 2023, 2:30pm UTC](https://forums.unrealengine.com/t/behaviortree-causing-performance-drop-on-actor-spawn-during-runbehaviortree-in-the-aicontroller/755615 "2023-01-24T14:30:50Z")

</div>

I’m not sure what’s causing it, but BehaviorTree when initialized is causing a massive performance drop when RunBehaviorTree is finally called in the AIController when spawning in new AI. The AIs constructor is insanely …

---

## [Where implement detailed NPC Functionality in Components or BT Tasks?](https://forums.unrealengine.com/t/where-implement-detailed-npc-functionality-in-components-or-bt-tasks/755155)

<div class="topic-metadata">

**Author:** [@WombatBully](https://forums.unrealengine.com/u/WombatBully)\
**Replies:** 1\
**Last updated:** [January 23, 2023, 10:46am UTC](https://forums.unrealengine.com/t/where-implement-detailed-npc-functionality-in-components-or-bt-tasks/755155 "2023-01-23T10:46:00Z")

</div>

Where is the best place to implement detailed NPC behaviour when using Behavioural trees and Task ? Within the Blueprints, and Sub components of an NPC Actor, or within the Tasks (Called by Behaviour Trees) ? I typic…

---

## [Lyra bot controlvolume object out of range? How do these work?](https://forums.unrealengine.com/t/lyra-bot-controlvolume-object-out-of-range-how-do-these-work/754734)

<div class="topic-metadata">

**Author:** [@unrealdeveloper3](https://forums.unrealengine.com/u/unrealdeveloper3)\
**Replies:** 0\
**Last updated:** [January 22, 2023, 3:53pm UTC](https://forums.unrealengine.com/t/lyra-bot-controlvolume-object-out-of-range-how-do-these-work/754734 "2023-01-22T15:53:44Z")

</div>

I have made a custom map in Lyra, and the bots on blue team are running to the control volume, but the red team stays still. I have tried replicating the positioning of the control volume on the red side of the map, but …

---

## [How can I get my AI to rotate smoothly instead of snapping while aiming using ALS v4?](https://forums.unrealengine.com/t/how-can-i-get-my-ai-to-rotate-smoothly-instead-of-snapping-while-aiming-using-als-v4/753892)

<div class="topic-metadata">

**Author:** [@MrGoatsy](https://forums.unrealengine.com/u/MrGoatsy)\
**Replies:** 0\
**Last updated:** [January 20, 2023, 10:25pm UTC](https://forums.unrealengine.com/t/how-can-i-get-my-ai-to-rotate-smoothly-instead-of-snapping-while-aiming-using-als-v4/753892 "2023-01-20T22:25:43Z")

</div>

This is what is happening: I want it to rotate smoothly like it does without aiming. Changing Use Controller Yaw does nothing Changing Use Controller Desired Rotation does nothing Changing Orient Rotation …

---

## [Please help with checking validity of path to location](https://forums.unrealengine.com/t/please-help-with-checking-validity-of-path-to-location/753636)

<div class="topic-metadata">

**Author:** [@mighty\_ganesh](https://forums.unrealengine.com/u/mighty_ganesh)\
**Replies:** 0\
**Last updated:** [January 20, 2023, 3:24pm UTC](https://forums.unrealengine.com/t/please-help-with-checking-validity-of-path-to-location/753636 "2023-01-20T15:24:38Z")

</div>

Basically I just want to confirm if AI is able to reach certain location. I’ve tried various methods like finding path synchronously etc but the results are very strange. When target location is in the posistion 1 on …

---

## [AI Move To rotation issue (pitch and roll)](https://forums.unrealengine.com/t/ai-move-to-rotation-issue-pitch-and-roll/746079)

<div class="topic-metadata">

**Author:** [@Nemwaz](https://forums.unrealengine.com/u/Nemwaz)\
**Replies:** 1\
**Last updated:** [January 20, 2023, 12:28pm UTC](https://forums.unrealengine.com/t/ai-move-to-rotation-issue-pitch-and-roll/746079 "2023-01-20T12:28:31Z")

</div>

Hey there, I´m pretty new to unreal engine so I might be missing something… I have an enemy Pawn with a Behavior Tree to roam around and follow the player on AI Perception Sight. Everything is working great so far… …

---

## [AI perception problem](https://forums.unrealengine.com/t/ai-perception-problem/753340)

<div class="topic-metadata">

**Author:** [@Mikeru34](https://forums.unrealengine.com/u/Mikeru34)\
**Replies:** 0\
**Last updated:** [January 20, 2023, 4:01am UTC](https://forums.unrealengine.com/t/ai-perception-problem/753340 "2023-01-20T04:01:14Z")

</div>

Hello, I am working on an RTS and Im finding some difficulties on this event graph in AI controller’s AI perception. My goal was is to have the AI to go near and attack me but the only thing it does is go near once I ent…

---

## [C++ EQS Test that uses C++ Interface not working](https://forums.unrealengine.com/t/c-eqs-test-that-uses-c-interface-not-working/753287)

<div class="topic-metadata">

**Author:** [@AgentArachnid66](https://forums.unrealengine.com/u/AgentArachnid66)\
**Replies:** 0\
**Last updated:** [January 20, 2023, 1:38am UTC](https://forums.unrealengine.com/t/c-eqs-test-that-uses-c-interface-not-working/753287 "2023-01-20T01:38:43Z")

</div>

Hello, I’m trying to write my own EQS Test in C++ that will score the items based on a value returned by a UObject Interface. It compiles fine but when I test it using the EQS Testing Pawn in the scene, every item retur…

---

## [How do I get AI to cluster in a particular shape](https://forums.unrealengine.com/t/how-do-i-get-ai-to-cluster-in-a-particular-shape/749251)

<div class="topic-metadata">

**Author:** [@MayLyBy](https://forums.unrealengine.com/u/MayLyBy)\
**Replies:** 2\
**Last updated:** [January 20, 2023, 12:37am UTC](https://forums.unrealengine.com/t/how-do-i-get-ai-to-cluster-in-a-particular-shape/749251 "2023-01-20T00:37:23Z")

</div>

I want to make a monster group-like mechanism for my game Demo, let the monster group walk in square formation like a parade, and at the same time I want the monster AI to attack the player and surround the player intent…

---

## [How can i make an AI enemy patrol after seeing the player](https://forums.unrealengine.com/t/how-can-i-make-an-ai-enemy-patrol-after-seeing-the-player/753149)

<div class="topic-metadata">

**Author:** [@MikeCheck\_3](https://forums.unrealengine.com/u/MikeCheck_3)\
**Replies:** 0\
**Last updated:** [January 19, 2023, 8:54pm UTC](https://forums.unrealengine.com/t/how-can-i-make-an-ai-enemy-patrol-after-seeing-the-player/753149 "2023-01-19T20:54:16Z")

</div>

Hello, I am trying to make an AI enemy start to walk on a path but only after seeing me (the player). The way im making the enemy follow a path is by having multiple target points on the map and making him check for th…

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

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