# AI

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

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

**Page:** 31

---

## [How to properly play animation based on Blackboard key value? Question](https://forums.unrealengine.com/t/how-to-properly-play-animation-based-on-blackboard-key-value-question/1258745)

<div class="topic-metadata">

**Author:** [@O3Hundred](https://forums.unrealengine.com/u/O3Hundred)\
**Replies:** 0\
**Last updated:** [August 12, 2023, 1:08pm UTC](https://forums.unrealengine.com/t/how-to-properly-play-animation-based-on-blackboard-key-value-question/1258745 "2023-08-12T13:08:06Z")

</div>

So I have an enemy, and I want that enemy to play an animation once I feed a specific speed to the blackboard value in the behavior task bp. I have set up an animation blend space + animation blueprint that work fine if …

---

## [Move to in task always fails](https://forums.unrealengine.com/t/move-to-in-task-always-fails/1254958)

<div class="topic-metadata">

**Author:** [@Koxae](https://forums.unrealengine.com/u/Koxae)\
**Replies:** 3\
**Last updated:** [August 10, 2023, 3:22pm UTC](https://forums.unrealengine.com/t/move-to-in-task-always-fails/1254958 "2023-08-10T15:22:45Z")

</div>

Hello. A node Move to in task always fails. There are no errors, the node receives all the data. Navmeshes is in the scene. What can be wrong? Help me please. I have read similar questions but couldn’t find a solution t…

---

## [Is there a way to make an AI agent not omniscient as to the current layout of the navmesh?](https://forums.unrealengine.com/t/is-there-a-way-to-make-an-ai-agent-not-omniscient-as-to-the-current-layout-of-the-navmesh/1252169)

<div class="topic-metadata">

**Author:** [@ThisAnnoyingGuy](https://forums.unrealengine.com/u/ThisAnnoyingGuy)\
**Replies:** 1\
**Last updated:** [August 6, 2023, 2:36am UTC](https://forums.unrealengine.com/t/is-there-a-way-to-make-an-ai-agent-not-omniscient-as-to-the-current-layout-of-the-navmesh/1252169 "2023-08-06T02:36:59Z")

</div>

I have an agent that tracks the player, but the player can create obstacles that the agent cannot get past (but the player can). To accomplish this, I used null navmesh modifiers on said obstacles. Problem is, the agent…

---

## [Why can't I get Behavior Tree aborts to work?](https://forums.unrealengine.com/t/why-cant-i-get-behavior-tree-aborts-to-work/1251601)

<div class="topic-metadata">

**Author:** [@ThisAnnoyingGuy](https://forums.unrealengine.com/u/ThisAnnoyingGuy)\
**Replies:** 1\
**Last updated:** [August 5, 2023, 4:05pm UTC](https://forums.unrealengine.com/t/why-cant-i-get-behavior-tree-aborts-to-work/1251601 "2023-08-05T16:05:14Z")

</div>

Here’s a snippet of my very unfinished behavior tree. The “Player is seen” decorator on the Simple Parallel node is set to abort lower priority if the Blackboard value “SeenPlayer” is set. Despite the fact that Seen…

---

## [Cannot stop Behavior tree, still runs after AI is killed](https://forums.unrealengine.com/t/cannot-stop-behavior-tree-still-runs-after-ai-is-killed/580741)

<div class="topic-metadata">

**Author:** [@Lowenfas](https://forums.unrealengine.com/u/Lowenfas)\
**Replies:** 10\
**Last updated:** [August 5, 2023, 3:53pm UTC](https://forums.unrealengine.com/t/cannot-stop-behavior-tree-still-runs-after-ai-is-killed/580741 "2023-08-05T15:53:40Z")

</div>

Whenever my AI dies I am not using ‘Destroy Actor’ because I want their body in the game still but the behavior tree keeps running no matter what I do. I plan on having a decent number of enemies and I do not want a whol…

---

## [Pausing and resuming Behavior Tree](https://forums.unrealengine.com/t/pausing-and-resuming-behavior-tree/1249446)

<div class="topic-metadata">

**Author:** [@m5m](https://forums.unrealengine.com/u/m5m)\
**Replies:** 0\
**Last updated:** [August 3, 2023, 12:57pm UTC](https://forums.unrealengine.com/t/pausing-and-resuming-behavior-tree/1249446 "2023-08-03T12:57:03Z")

</div>

Hi there! TL;DR: Is there any way to completely pause a behavior tree’s execution and later resume it at the exact same spot / node where it was? Long explanation: I’ve built my NPC’s AI through behavior trees. They m…

---

## [How to make an AI enemy move correctly with flying movement mode](https://forums.unrealengine.com/t/how-to-make-an-ai-enemy-move-correctly-with-flying-movement-mode/1247677)

<div class="topic-metadata">

**Author:** [@Zarxan](https://forums.unrealengine.com/u/Zarxan)\
**Replies:** 0\
**Last updated:** [August 2, 2023, 1:03am UTC](https://forums.unrealengine.com/t/how-to-make-an-ai-enemy-move-correctly-with-flying-movement-mode/1247677 "2023-08-02T01:03:43Z")

</div>

Hi, I have created an enemy that flies, I have indicated that the movement mode is “flying”, but I have to update the Z position in each tick because otherwise the character falls to the ground. On the other hand, if I s…

---

## [MoveTo always fails](https://forums.unrealengine.com/t/moveto-always-fails/465589)

<div class="topic-metadata">

**Author:** [@Virtual\_Bones](https://forums.unrealengine.com/u/Virtual_Bones)\
**Replies:** 12\
**Last updated:** [August 1, 2023, 3:10pm UTC](https://forums.unrealengine.com/t/moveto-always-fails/465589 "2023-08-01T15:10:47Z")

</div>

Hey guys. I had a large character set up in my game, where it chooses a random vector in a reachable position and moves towards it. Suddenly, one day, the whole thing stops working. I can no longer even simply do a “Move…

---

## [StateTree crash when use TScriptInterface in packaged game \[UE5.2\]](https://forums.unrealengine.com/t/statetree-crash-when-use-tscriptinterface-in-packaged-game-ue5-2/1181862)

<div class="topic-metadata">

**Author:** [@CMGZ\_Han](https://forums.unrealengine.com/u/CMGZ_Han)\
**Replies:** 2\
**Last updated:** [July 30, 2023, 4:18pm UTC](https://forums.unrealengine.com/t/statetree-crash-when-use-tscriptinterface-in-packaged-game-ue5-2/1181862 "2023-07-30T16:18:35Z")

</div>

UPROPERTY(VisibleAnywhere, Category="Input") TArray\<TScriptInterface\<class IMyInterface\>\> MyInterfaces; UPROPERTY(VisibleAnywhere, Category="Input") TScriptInterface\<class IMyInterface\> MyInterface; My packaged projec…

---

## [AI Navigation Works on Development Build but Not Shipping](https://forums.unrealengine.com/t/ai-navigation-works-on-development-build-but-not-shipping/396802)

<div class="topic-metadata">

**Author:** [@apq](https://forums.unrealengine.com/u/apq)\
**Replies:** 9\
**Last updated:** [July 30, 2023, 2:26pm UTC](https://forums.unrealengine.com/t/ai-navigation-works-on-development-build-but-not-shipping/396802 "2023-07-30T14:26:25Z")

</div>

Enemies doesn’t start walking after spawning when running on a build packaged with the Shipping configuration. It works perfectly however when running the game from the editor or on a packaged Development build. What c…

---

## [Stop AI from detect player at a high place](https://forums.unrealengine.com/t/stop-ai-from-detect-player-at-a-high-place/1243750)

<div class="topic-metadata">

**Author:** [@DucDusk](https://forums.unrealengine.com/u/DucDusk)\
**Replies:** 1\
**Last updated:** [July 29, 2023, 6:12pm UTC](https://forums.unrealengine.com/t/stop-ai-from-detect-player-at-a-high-place/1243750 "2023-07-29T18:12:39Z")

</div>

I am making a stealth game. I got the AI perception system to works on my enemy AI. But the sight cone is too big, the AI can detect player from a point way above the ground. I don’t have an idea on how to fix this. Can …

---

## [How can I stop AI from attacking?](https://forums.unrealengine.com/t/how-can-i-stop-ai-from-attacking/478305)

<div class="topic-metadata">

**Author:** [@1337Vinci](https://forums.unrealengine.com/u/1337Vinci)\
**Replies:** 3\
**Last updated:** [July 29, 2023, 1:18am UTC](https://forums.unrealengine.com/t/how-can-i-stop-ai-from-attacking/478305 "2023-07-29T01:18:56Z")

</div>

Hello, I wanted to implement simple AI controller. My Orc should walk around and attack the player character when it is in sight.That’s working fine but Orc is still attacking even when the health of his target is equal…

---

## [How would you get the AI to have "Eyes in the back of the head" kind of thing?](https://forums.unrealengine.com/t/how-would-you-get-the-ai-to-have-eyes-in-the-back-of-the-head-kind-of-thing/1242291)

<div class="topic-metadata">

**Author:** [@usa423](https://forums.unrealengine.com/u/usa423)\
**Replies:** 2\
**Last updated:** [July 28, 2023, 4:04pm UTC](https://forums.unrealengine.com/t/how-would-you-get-the-ai-to-have-eyes-in-the-back-of-the-head-kind-of-thing/1242291 "2023-07-28T16:04:00Z")

</div>

I know it is not as realistic, but how to get them to always move to you no matter if they are looking your way or not?

---

## [Ai Spawning with Behavior tree not working](https://forums.unrealengine.com/t/ai-spawning-with-behavior-tree-not-working/1241968)

<div class="topic-metadata">

**Author:** [@Gab3T2](https://forums.unrealengine.com/u/Gab3T2)\
**Replies:** 1\
**Last updated:** [July 27, 2023, 6:29pm UTC](https://forums.unrealengine.com/t/ai-spawning-with-behavior-tree-not-working/1241968 "2023-07-27T18:29:46Z")

</div>

So I’m having this problem where when I spawn an AI into my level the AI won’t sprint after the player when a chase commences. Although when I place him into the level it works perfectly fine. I’ve tried changing the paw…

---

## [Sounds in game arent mixing well](https://forums.unrealengine.com/t/sounds-in-game-arent-mixing-well/1240825)

<div class="topic-metadata">

**Author:** [@Xiontheman1](https://forums.unrealengine.com/u/Xiontheman1)\
**Replies:** 0\
**Last updated:** [July 26, 2023, 4:39pm UTC](https://forums.unrealengine.com/t/sounds-in-game-arent-mixing-well/1240825 "2023-07-26T16:39:11Z")

</div>

I have sounds that trigger when close to cars that drive by the player and I also have background music that plays. The car sounds trigger from a collision when the character is near the car. The background music plays f…

---

## [Crash in a presumably crash safe code?](https://forums.unrealengine.com/t/crash-in-a-presumably-crash-safe-code/1240335)

<div class="topic-metadata">

**Author:** [@SkenonSGames](https://forums.unrealengine.com/u/SkenonSGames)\
**Replies:** 0\
**Last updated:** [July 26, 2023, 6:36am UTC](https://forums.unrealengine.com/t/crash-in-a-presumably-crash-safe-code/1240335 "2023-07-26T06:36:26Z")

</div>

Let’s start with the code: for(const UStaticMeshComponent\* comp : meshes) { if(IsValid(comp)) { TArray\<FName\> sockets = comp-\>GetAllSocketNames(); \<- This line crashes ... This code is located inside the OnConstruc…

---

## [How to deal with Unreal Units?](https://forums.unrealengine.com/t/how-to-deal-with-unreal-units/442395)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_43a5a82d](https://forums.unrealengine.com/u/anonymous_user_43a5a82d)\
**Replies:** 8\
**Last updated:** [July 23, 2023, 7:45pm UTC](https://forums.unrealengine.com/t/how-to-deal-with-unreal-units/442395 "2023-07-23T19:45:03Z")

</div>

Hey guys, using Unreal I do have a severe problem I cannot solve myself so far. So I would be very pleased if you could help me. I would like to know how Unreal Units can be defined. I do have the problem that one gr…

---

## [AI walks outside of NavMesh](https://forums.unrealengine.com/t/ai-walks-outside-of-navmesh/355944)

<div class="topic-metadata">

**Author:** [@Napoleonite](https://forums.unrealengine.com/u/Napoleonite)\
**Replies:** 22\
**Last updated:** [July 23, 2023, 1:10pm UTC](https://forums.unrealengine.com/t/ai-walks-outside-of-navmesh/355944 "2023-07-23T13:10:58Z")

</div>

I move the AI using MoveTo (inside a behavior tree) and then assign the TargetLocation as the player location. The player then walks to the end of the ledge shown in the screenshot below. The AI sadly follows the player …

---

## [Check if location is within navmesh (reachable)](https://forums.unrealengine.com/t/check-if-location-is-within-navmesh-reachable/323827)

<div class="topic-metadata">

**Author:** [@Raxol](https://forums.unrealengine.com/u/Raxol)\
**Replies:** 5\
**Last updated:** [July 23, 2023, 1:10pm UTC](https://forums.unrealengine.com/t/check-if-location-is-within-navmesh-reachable/323827 "2023-07-23T13:10:36Z")

</div>

I am struggling to find a way to check if a location is within the navmesh. Here is what I want to do: I got an AI Character that will run away from the player if it is attacked. If it reaches the bounds of the navmesh …

---

## [Detecting vehicle crash](https://forums.unrealengine.com/t/detecting-vehicle-crash/524952)

<div class="topic-metadata">

**Author:** [@Pulsarman325](https://forums.unrealengine.com/u/Pulsarman325)\
**Replies:** 2\
**Last updated:** [July 22, 2023, 9:13pm UTC](https://forums.unrealengine.com/t/detecting-vehicle-crash/524952 "2023-07-22T21:13:08Z")

</div>

I’m using chaos vehicle in my game which follows a spline, all working fine, occasionally the vehicles will crash into each other or a static mesh (wall), then they keep trying to go forward and stay there. My question i…

---

## [I can't seem to get a C++ script to get the current active sounds as an array.](https://forums.unrealengine.com/t/i-cant-seem-to-get-a-c-script-to-get-the-current-active-sounds-as-an-array/1237039)

<div class="topic-metadata">

**Author:** [@CoalMinerMusic](https://forums.unrealengine.com/u/CoalMinerMusic)\
**Replies:** 0\
**Last updated:** [July 22, 2023, 7:29pm UTC](https://forums.unrealengine.com/t/i-cant-seem-to-get-a-c-script-to-get-the-current-active-sounds-as-an-array/1237039 "2023-07-22T19:29:48Z")

</div>

Hello! I’m building out a TouchOSC template for use in testing and mixing audio in engine, and I’d like to add a live feed of the current active sounds to the build. I’ve written a script with C++ (with the help of some …

---

## [ホラーゲーム開発における敵キャラ（AI）の実装](https://forums.unrealengine.com/t/ai/1234810)

<div class="topic-metadata">

**Author:** [@miraiISGOD](https://forums.unrealengine.com/u/miraiISGOD)\
**Replies:** 0\
**Last updated:** [July 20, 2023, 2:33pm UTC](https://forums.unrealengine.com/t/ai/1234810 "2023-07-20T14:33:12Z")

</div>

初心者です。 インディーゲームを作りたく、そのためにAIを実装したいところです。 しかし初めてなのでわからないことだらけです。 以下がやりかたのわからない実装の要件になります。 有識者の方、ご回答お願いします。 作成したい敵キャラの要件 ①敵キャラは常に独特の音を立てる。（口ずさんだり、奇声をあげている） →近ければ音が大きくなり、離れると小さくなる ②プレイヤーを見つけると、奇声を上げ（その間足を止めて咆哮）た後に追い…

---

## [State Trees and transition on completion](https://forums.unrealengine.com/t/state-trees-and-transition-on-completion/788521)

<div class="topic-metadata">

**Author:** [@Light\_Shock](https://forums.unrealengine.com/u/Light_Shock)\
**Replies:** 8\
**Last updated:** [July 17, 2023, 7:59pm UTC](https://forums.unrealengine.com/t/state-trees-and-transition-on-completion/788521 "2023-07-17T19:59:12Z")

</div>

I want to start a discussion about the way state trees work. If I have a node that has a transition on completion the transition does not take place if the success state is set by Enter State. Any thoughts on this - is …

---

## [Stuck AI - NavLinkProxies & MoveTo](https://forums.unrealengine.com/t/stuck-ai-navlinkproxies-moveto/1230890)

<div class="topic-metadata">

**Author:** [@HeliusCarthaxis](https://forums.unrealengine.com/u/HeliusCarthaxis)\
**Replies:** 0\
**Last updated:** [July 16, 2023, 7:04pm UTC](https://forums.unrealengine.com/t/stuck-ai-navlinkproxies-moveto/1230890 "2023-07-16T19:04:26Z")

</div>

Apologies if this is a newbie sort of questions, I’m not finding resources that point me toward an answer on this. I have a very simple chase/patrol AI set up with a behavior tree (I’ll link a picture). I’ve noticed som…

---

## [How to make AI Run Away from Player with BluePrint?](https://forums.unrealengine.com/t/how-to-make-ai-run-away-from-player-with-blueprint/682764)

<div class="topic-metadata">

**Author:** [@Aethernum25](https://forums.unrealengine.com/u/Aethernum25)\
**Replies:** 8\
**Last updated:** [July 15, 2023, 5:51pm UTC](https://forums.unrealengine.com/t/how-to-make-ai-run-away-from-player-with-blueprint/682764 "2023-07-15T17:51:13Z")

</div>

Hello guys. I’m trying to implement an animal behaviour on my AI. Basically what I have so far is patrolling randomly between 4 points. What I wanted is, every time the AI spots the player it runs away. I wanted to be a…

---

## [Whole NavMesh tiles turning red when using small obstacles?](https://forums.unrealengine.com/t/whole-navmesh-tiles-turning-red-when-using-small-obstacles/1228513)

<div class="topic-metadata">

**Author:** [@AimlessBanana1](https://forums.unrealengine.com/u/AimlessBanana1)\
**Replies:** 0\
**Last updated:** [July 13, 2023, 11:38pm UTC](https://forums.unrealengine.com/t/whole-navmesh-tiles-turning-red-when-using-small-obstacles/1228513 "2023-07-13T23:38:45Z")

</div>

So I have a character running along strips of NavMesh and to prohibit the character from being able to turn around I wanted to have a NavObstacle following it with a Dynamic generation of the NavMesh. But as soon as the …

---

## [Proper way to implement Throwing/Catching/Blocking AI.](https://forums.unrealengine.com/t/proper-way-to-implement-throwing-catching-blocking-ai/1191876)

<div class="topic-metadata">

**Author:** [@Judicator](https://forums.unrealengine.com/u/Judicator)\
**Replies:** 8\
**Last updated:** [July 11, 2023, 7:43am UTC](https://forums.unrealengine.com/t/proper-way-to-implement-throwing-catching-blocking-ai/1191876 "2023-07-11T07:43:13Z")

</div>

I’m working to what is, basically, a frisbee, game where there are two opponents standing on platforms throwing discs at each other. There can be more discs at once flying around and the platforms may lack tiles here an…

---

## [why my AI keep run into the wall and stuck in the wall](https://forums.unrealengine.com/t/why-my-ai-keep-run-into-the-wall-and-stuck-in-the-wall/1221380)

<div class="topic-metadata">

**Author:** [@wasecorn](https://forums.unrealengine.com/u/wasecorn)\
**Replies:** 0\
**Last updated:** [July 6, 2023, 3:22pm UTC](https://forums.unrealengine.com/t/why-my-ai-keep-run-into-the-wall-and-stuck-in-the-wall/1221380 "2023-07-06T15:22:30Z")

</div>

I let AI chase the player by simply using AI move to, and it stuck in the wall like the picture. I changed the mesh scale and the NAV agent radius, but it didn’t work. It just went straight to me, and I’m sure that th…

---

## [if UBTTask\_MoveTo is used inside UBTComposite\_SimpleParallel it's observers are not being unregistered when task is being aborted by higher priority decorator](https://forums.unrealengine.com/t/if-ubttask-moveto-is-used-inside-ubtcomposite-simpleparallel-its-observers-are-not-being-unregistered-when-task-is-being-aborted-by-higher-priority-decorator/1221122)

<div class="topic-metadata">

**Author:** [@TSroczynski](https://forums.unrealengine.com/u/TSroczynski)\
**Replies:** 0\
**Last updated:** [July 6, 2023, 9:34am UTC](https://forums.unrealengine.com/t/if-ubttask-moveto-is-used-inside-ubtcomposite-simpleparallel-its-observers-are-not-being-unregistered-when-task-is-being-aborted-by-higher-priority-decorator/1221122 "2023-07-06T09:34:01Z")

</div>

if UBTTask\_MoveTo is used inside UBTComposite\_SimpleParallel it’s observers are not being unregistered(they are marked as pending abort) when task is being aborted by higher priority decorator(set to abort lower priorit…

---

## [NavLinkProxy don't work :|](https://forums.unrealengine.com/t/navlinkproxy-dont-work/1220732)

<div class="topic-metadata">

**Author:** [@Tokka\_Games](https://forums.unrealengine.com/u/Tokka_Games)\
**Replies:** 0\
**Last updated:** [July 6, 2023, 12:38am UTC](https://forums.unrealengine.com/t/navlinkproxy-dont-work/1220732 "2023-07-06T00:38:56Z")

</div>

Who would suspect that something don’t work in ue5 huh? Well the i just don’t want to go through nav link. I am using behaviour tree

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

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