# AI

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

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

**Page:** 35

---

## [\[SOLUTION\] The way to use Set Focus and affect it to Aim Offset for AI](https://forums.unrealengine.com/t/solution-the-way-to-use-set-focus-and-affect-it-to-aim-offset-for-ai/714526)

<div class="topic-metadata">

**Author:** [@MoonKnight998](https://forums.unrealengine.com/u/MoonKnight998)\
**Replies:** 3\
**Last updated:** [April 3, 2023, 11:07am UTC](https://forums.unrealengine.com/t/solution-the-way-to-use-set-focus-and-affect-it-to-aim-offset-for-ai/714526 "2023-04-03T11:07:09Z")

</div>

When you setup a “SetFocus” task something like this: Then you got Aim Offset of AI when you close to AI like this: It’s seem like AI aiming to pivot point of player character. I found a solution for myself, anyone…

---

## [AI MoveTo always reports Success?](https://forums.unrealengine.com/t/ai-moveto-always-reports-success/478210)

<div class="topic-metadata">

**Author:** [@TheWolf](https://forums.unrealengine.com/u/TheWolf)\
**Replies:** 6\
**Last updated:** [April 2, 2023, 4:04am UTC](https://forums.unrealengine.com/t/ai-moveto-always-reports-success/478210 "2023-04-02T04:04:29Z")

</div>

Hi, I’m building a simple move to character AI (in AI character BP, not BB) and am having trouble getting anything other than success as a result. My setup is : - Navmesh covers the navigable area of player and AI - A…

---

## [Landscape Material effects AI movement in nav mesh](https://forums.unrealengine.com/t/landscape-material-effects-ai-movement-in-nav-mesh/834810)

<div class="topic-metadata">

**Author:** [@ap\_eg](https://forums.unrealengine.com/u/ap_eg)\
**Replies:** 0\
**Last updated:** [March 30, 2023, 11:12pm UTC](https://forums.unrealengine.com/t/landscape-material-effects-ai-movement-in-nav-mesh/834810 "2023-03-30T23:12:26Z")

</div>

I have a vehicle that is able to move normally within its nav mesh without landscape material applied. However, when I apply some Landscape materials (from the marketplace), the vehicle looks jittery as it moves abnormal…

---

## [How to swap controllers?](https://forums.unrealengine.com/t/how-to-swap-controllers/667413)

<div class="topic-metadata">

**Author:** [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Replies:** 20\
**Last updated:** [March 30, 2023, 3:49pm UTC](https://forums.unrealengine.com/t/how-to-swap-controllers/667413 "2023-03-30T15:49:40Z")

</div>

I want to exchange the “Crowd AI Controller” for the “AIController” at runtime. However, I can’t find any information on how to do this. Because I have the same problem shown in this post. I think it is possible to …

---

## [Need help on attack combo animations](https://forums.unrealengine.com/t/need-help-on-attack-combo-animations/827673)

<div class="topic-metadata">

**Author:** [@user\_300324773b09952d1f47f0582363200ffcaa31820cfc09f3603719](https://forums.unrealengine.com/u/user_300324773b09952d1f47f0582363200ffcaa31820cfc09f3603719)\
**Replies:** 3\
**Last updated:** [March 30, 2023, 1:50pm UTC](https://forums.unrealengine.com/t/need-help-on-attack-combo-animations/827673 "2023-03-30T13:50:12Z")

</div>

I m trying to make an attack combo for an enemy. The attack combo consist of 3 attacks. Here is the blueprint for my logic graph. But the problem is he only plays the combo3 animation halfway, then starting combo1 again… …

---

## [AI Character stopped rotating](https://forums.unrealengine.com/t/ai-character-stopped-rotating/608500)

<div class="topic-metadata">

**Author:** [@Lowenfas](https://forums.unrealengine.com/u/Lowenfas)\
**Replies:** 1\
**Last updated:** [March 28, 2023, 10:47pm UTC](https://forums.unrealengine.com/t/ai-character-stopped-rotating/608500 "2023-03-28T22:47:22Z")

</div>

I had my AI working, then I done fudged up and apparently did something wrong and now my guy does not rotate. I made sure Controller Rotation Yaw is disabled, Orient Rotation to Movement is disabled, and Use Controller …

---

## [I don't understand why I can't set the rotation of an AI](https://forums.unrealengine.com/t/i-dont-understand-why-i-cant-set-the-rotation-of-an-ai/302167)

<div class="topic-metadata">

**Author:** [@Asher\_S\_Einhorn](https://forums.unrealengine.com/u/Asher_S_Einhorn)\
**Replies:** 5\
**Last updated:** [March 27, 2023, 1:38pm UTC](https://forums.unrealengine.com/t/i-dont-understand-why-i-cant-set-the-rotation-of-an-ai/302167 "2023-03-27T13:38:46Z")

</div>

When my character fires at the player I want to rotate them to face the player. Simple enough. But nothing works, setting the actor rotation doesn’t work, and neither does setting the control rotation. the node is defin…

---

## [Simple Move to Actor - Client / Server Help!](https://forums.unrealengine.com/t/simple-move-to-actor-client-server-help/399642)

<div class="topic-metadata">

**Author:** [@ChapmanVRClub](https://forums.unrealengine.com/u/ChapmanVRClub)\
**Replies:** 4\
**Last updated:** [March 27, 2023, 12:50pm UTC](https://forums.unrealengine.com/t/simple-move-to-actor-client-server-help/399642 "2023-03-27T12:50:53Z")

</div>

Hey! We’re seeming to have an issue with the “Simple move to actor” node when running a client on multiplayer (Note that everything is working on the host). It seems as though there is an issue with the client and server…

---

## [AI Don't Move Correctly After Changing the Default Pawn Capsule Size](https://forums.unrealengine.com/t/ai-dont-move-correctly-after-changing-the-default-pawn-capsule-size/826764)

<div class="topic-metadata">

**Author:** [@Guesscui2018](https://forums.unrealengine.com/u/Guesscui2018)\
**Replies:** 1\
**Last updated:** [March 27, 2023, 5:15am UTC](https://forums.unrealengine.com/t/ai-dont-move-correctly-after-changing-the-default-pawn-capsule-size/826764 "2023-03-27T05:15:33Z")

</div>

So I changed my AI’s BP capsule size from 1.0 to 1.5, and now all of them are behavioring strangely. Some of them stopped moving completely, some move randomly in certain areas of map. I’ve tried rebuilding nav mesh, l…

---

## [Sphere Trace By Objects](https://forums.unrealengine.com/t/sphere-trace-by-objects/819986)

<div class="topic-metadata">

**Author:** [@Untalmarian](https://forums.unrealengine.com/u/Untalmarian)\
**Replies:** 1\
**Last updated:** [March 26, 2023, 10:37pm UTC](https://forums.unrealengine.com/t/sphere-trace-by-objects/819986 "2023-03-26T22:37:29Z")

</div>

I have a problem that when AI start animation always hit my player. Even if my player it’s out of range. AttackPlayerTask: AttackBpAI: BBTree: BpPlayerReceiveDamage:

---

## [Behavior tree stuck at trying to set variable?](https://forums.unrealengine.com/t/behavior-tree-stuck-at-trying-to-set-variable/823792)

<div class="topic-metadata">

**Author:** [@GKoch](https://forums.unrealengine.com/u/GKoch)\
**Replies:** 8\
**Last updated:** [March 26, 2023, 7:32pm UTC](https://forums.unrealengine.com/t/behavior-tree-stuck-at-trying-to-set-variable/823792 "2023-03-26T19:32:49Z")

</div>

So, I set a target variable for my AI to attack. However, once the target is destroyed, my AI gets stuck trying to set that variable. Is there a way to abort? here’s the task: and the relevant snippet of the tree: …

---

## [NavMeshInvoker VS NavMeshBounds](https://forums.unrealengine.com/t/navmeshinvoker-vs-navmeshbounds/825550)

<div class="topic-metadata">

**Author:** [@G\_juanjo](https://forums.unrealengine.com/u/G_juanjo)\
**Replies:** 0\
**Last updated:** [March 26, 2023, 6:08pm UTC](https://forums.unrealengine.com/t/navmeshinvoker-vs-navmeshbounds/825550 "2023-03-26T18:08:18Z")

</div>

Hi! Im making an open world with world partition and i was wondering what is better for end user performance, use invokers or multiple navMeshBounds stategically placed around the map. I dont need a dynamic mesh so i wa…

---

## [BT vs. GOAP for game AI](https://forums.unrealengine.com/t/bt-vs-goap-for-game-ai/813059)

<div class="topic-metadata">

**Author:** [@ElThundercloud](https://forums.unrealengine.com/u/ElThundercloud)\
**Replies:** 1\
**Last updated:** [March 26, 2023, 7:23am UTC](https://forums.unrealengine.com/t/bt-vs-goap-for-game-ai/813059 "2023-03-26T07:23:29Z")

</div>

I’m experimenting with AI and generally want to explore different models for programming agent behavior and while neural networks and such are cool, their training nature makes it hard to set rules, so I assume they aren…

---

## [How to Spawn AI via Blueprint?](https://forums.unrealengine.com/t/how-to-spawn-ai-via-blueprint/354522)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_e2eab6e11](https://forums.unrealengine.com/u/anonymous_user_e2eab6e11)\
**Replies:** 4\
**Last updated:** [March 25, 2023, 1:57pm UTC](https://forums.unrealengine.com/t/how-to-spawn-ai-via-blueprint/354522 "2023-03-25T13:57:53Z")

</div>

So, I’ve been Googling this for almost a month, and still haven’t found anything. At first, I was trying to use the “Spawn Actor from Class node,” and that didn’t work, despite spawning a default controller with it. Next…

---

## [Crash in FSetElementID FindID](https://forums.unrealengine.com/t/crash-in-fsetelementid-findid/458294)

<div class="topic-metadata">

**Author:** [@LillFrasen](https://forums.unrealengine.com/u/LillFrasen)\
**Replies:** 1\
**Last updated:** [March 23, 2023, 12:57pm UTC](https://forums.unrealengine.com/t/crash-in-fsetelementid-findid/458294 "2023-03-23T12:57:51Z")

</div>

I get this error after maybe 10s of testing my game, I don’t have to do anything. Exception thrown at 0x00007FF80B6ADFA6 (UE4Editor-CoreUObject.dll) in UE4Editor.exe: 0xC0000005: Access violation reading location 0x0000…

---

## [The logic of the movement of vehicles for RTS, AI.](https://forums.unrealengine.com/t/the-logic-of-the-movement-of-vehicles-for-rts-ai/797416)

<div class="topic-metadata">

**Author:** [@Boris\_Jabickii](https://forums.unrealengine.com/u/Boris_Jabickii)\
**Replies:** 0\
**Last updated:** [March 22, 2023, 4:45pm UTC](https://forums.unrealengine.com/t/the-logic-of-the-movement-of-vehicles-for-rts-ai/797416 "2023-03-22T16:45:27Z")

</div>

Hello, I’m trying to build a logic for moving more vehicles in a real-time strategy. I’m not a programmer, more of a designer, but the task seems instructive and useful. Can be done through a vehicle component, or throug…

---

## [How to block ai perception vision with invisible volume](https://forums.unrealengine.com/t/how-to-block-ai-perception-vision-with-invisible-volume/432151)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_8f6e4946](https://forums.unrealengine.com/u/anonymous_user_8f6e4946)\
**Replies:** 6\
**Last updated:** [March 21, 2023, 6:37pm UTC](https://forums.unrealengine.com/t/how-to-block-ai-perception-vision-with-invisible-volume/432151 "2023-03-21T18:37:52Z")

</div>

The only way I have been able to do this is by setting the collision channels to block visible (whilst having everything else on ignore). This won’t work for me, as it blocks input touches. In my level, I want to use t…

---

## [Custom AI behaviour tree](https://forums.unrealengine.com/t/custom-ai-behaviour-tree/795483)

<div class="topic-metadata">

**Author:** [@Seatyboie](https://forums.unrealengine.com/u/Seatyboie)\
**Replies:** 0\
**Last updated:** [March 21, 2023, 8:26am UTC](https://forums.unrealengine.com/t/custom-ai-behaviour-tree/795483 "2023-03-21T08:26:03Z")

</div>

I’m presently working with Unreal Engine 4 on a project in which I’m attempting to develop a custom AI behaviour tree for my game’s adversaries. Nevertheless, I’ve been having trouble completing this activity due to a re…

---

## [AI stop Sensing the player](https://forums.unrealengine.com/t/ai-stop-sensing-the-player/794776)

<div class="topic-metadata">

**Author:** [@Aethernum25](https://forums.unrealengine.com/u/Aethernum25)\
**Replies:** 0\
**Last updated:** [March 20, 2023, 12:22pm UTC](https://forums.unrealengine.com/t/ai-stop-sensing-the-player/794776 "2023-03-20T12:22:42Z")

</div>

Hello everyone. I’ve been struggling figuring out what’s happening with my AI. I created an AI with 5 states: Nothing, Patrol (which is random location), chase, run away and attack. Basically the AI will walk around, i…

---

## [Is there any way to change AI Debugging text color?](https://forums.unrealengine.com/t/is-there-any-way-to-change-ai-debugging-text-color/794630)

<div class="topic-metadata">

**Author:** [@xinyu\_nmm](https://forums.unrealengine.com/u/xinyu_nmm)\
**Replies:** 0\
**Last updated:** [March 20, 2023, 8:16am UTC](https://forums.unrealengine.com/t/is-there-any-way-to-change-ai-debugging-text-color/794630 "2023-03-20T08:16:31Z")

</div>

Just like the image shows, sometimes when I use AI debugging, I can’t see the text clearly. Is there any way to change the color of the text?

---

## [Behavior Tree switches task rapidly before completing them.](https://forums.unrealengine.com/t/behavior-tree-switches-task-rapidly-before-completing-them/793455)

<div class="topic-metadata">

**Author:** [@Ashutosh\_Sharma](https://forums.unrealengine.com/u/Ashutosh_Sharma)\
**Replies:** 0\
**Last updated:** [March 18, 2023, 8:05am UTC](https://forums.unrealengine.com/t/behavior-tree-switches-task-rapidly-before-completing-them/793455 "2023-03-18T08:05:54Z")

</div>

I have created an AI character with all its components like Tree, Board, Controller etc. So the issue is, sometimes the character switches between these CatJump and MoveTo nodes very rapidly before actually performing…

---

## [Issue with 'On Success' from 'AI Move To' node.](https://forums.unrealengine.com/t/issue-with-on-success-from-ai-move-to-node/792624)

<div class="topic-metadata">

**Author:** [@AvenozZ](https://forums.unrealengine.com/u/AvenozZ)\
**Replies:** 2\
**Last updated:** [March 17, 2023, 9:16am UTC](https://forums.unrealengine.com/t/issue-with-on-success-from-ai-move-to-node/792624 "2023-03-17T09:16:20Z")

</div>

Hello! This is my first Forum post so hopefully I’ve made this as straightforward as possible. I am currently working on a project with an AI using a Point A to Point B patrolling feature. I have made blueprints to ma…

---

## [AddExpectedError not detecting Error from UEngineSubsystem derived class](https://forums.unrealengine.com/t/addexpectederror-not-detecting-error-from-uenginesubsystem-derived-class/790759)

<div class="topic-metadata">

**Author:** [@PeteyCoco](https://forums.unrealengine.com/u/PeteyCoco)\
**Replies:** 0\
**Last updated:** [March 14, 2023, 5:42pm UTC](https://forums.unrealengine.com/t/addexpectederror-not-detecting-error-from-uenginesubsystem-derived-class/790759 "2023-03-14T17:42:22Z")

</div>

I’m writing automation tests for a class UMyClass that inherits from UEngineSubsystem. I want my test to catch an error message when I run UMyClass::PrintError(), but it doesn’t seem to work. Here’s my class: UCLASS() c…

---

## [2d enemy attack then close to player](https://forums.unrealengine.com/t/2d-enemy-attack-then-close-to-player/786350)

<div class="topic-metadata">

**Author:** [@SWIFT22](https://forums.unrealengine.com/u/SWIFT22)\
**Replies:** 4\
**Last updated:** [March 14, 2023, 2:08pm UTC](https://forums.unrealengine.com/t/2d-enemy-attack-then-close-to-player/786350 "2023-03-14T14:08:31Z")

</div>

i need help making a 2d enemy ai that attack and go towrd the player from a certien distance i have some stuff ready but i cant take screenshots of it i somehow got a screenshot of one of the bluprints but it doesnt wor…

---

## [Overcoming Stuttery Pawn AI Movement](https://forums.unrealengine.com/t/overcoming-stuttery-pawn-ai-movement/775081)

<div class="topic-metadata">

**Author:** [@Dante5050](https://forums.unrealengine.com/u/Dante5050)\
**Replies:** 5\
**Last updated:** [March 13, 2023, 11:47pm UTC](https://forums.unrealengine.com/t/overcoming-stuttery-pawn-ai-movement/775081 "2023-03-13T23:47:35Z")

</div>

Hello all! I have been bashing my head against the issue of AI-controlled pawn movement for a hot minute now, and while I am starting to see some results, they’re hardly ideal. After learning that I needed to…

---

## [Decorators - Blackboard Based Condition (this is confusing)...](https://forums.unrealengine.com/t/decorators-blackboard-based-condition-this-is-confusing/788133)

<div class="topic-metadata">

**Author:** [@VagrantProfile](https://forums.unrealengine.com/u/VagrantProfile)\
**Replies:** 3\
**Last updated:** [March 10, 2023, 11:13pm UTC](https://forums.unrealengine.com/t/decorators-blackboard-based-condition-this-is-confusing/788133 "2023-03-10T23:13:12Z")

</div>

Help me understand this. I’ve got this simple Behavior Tree set up. When I approach an NPC and press the interact button, it’s suppose to initiate a conversation (which it does). I want to, however, be able to ABORT …

---

## [How to implement AI for paper2D Enemies?](https://forums.unrealengine.com/t/how-to-implement-ai-for-paper2d-enemies/316227)

<div class="topic-metadata">

**Author:** [@Hybreed\_1](https://forums.unrealengine.com/u/Hybreed_1)\
**Replies:** 3\
**Last updated:** [March 10, 2023, 12:57pm UTC](https://forums.unrealengine.com/t/how-to-implement-ai-for-paper2d-enemies/316227 "2023-03-10T12:57:29Z")

</div>

We are trying to make a Beat 'em up type game like Double Dragon series. While working on enemies AI we got stuck. The enemy is chasing the character but the enemy sprite is rotating while chasing, the enemy is supposed…

---

## [Making an attack animation for AI](https://forums.unrealengine.com/t/making-an-attack-animation-for-ai/784578)

<div class="topic-metadata">

**Author:** [@user\_300324773b09952d1f47f0582363200ffcaa31820cfc09f3603719](https://forums.unrealengine.com/u/user_300324773b09952d1f47f0582363200ffcaa31820cfc09f3603719)\
**Replies:** 2\
**Last updated:** [March 10, 2023, 5:04am UTC](https://forums.unrealengine.com/t/making-an-attack-animation-for-ai/784578 "2023-03-10T05:04:07Z")

</div>

Hello guys! I m new here. I want to make the enemy attack once then back to idle pose for a brief moment before attacking again. But currently the enemy keep spamming attack, I dont want that. How can I achieve that? Ed…

---

## [AI not initially moving in packaged game](https://forums.unrealengine.com/t/ai-not-initially-moving-in-packaged-game/784669)

<div class="topic-metadata">

**Author:** [@Spiderraptor95](https://forums.unrealengine.com/u/Spiderraptor95)\
**Replies:** 9\
**Last updated:** [March 8, 2023, 5:05pm UTC](https://forums.unrealengine.com/t/ai-not-initially-moving-in-packaged-game/784669 "2023-03-08T17:05:15Z")

</div>

(Using 4.27)So I have an AI Monster that is supposed to wander around, and chase the player if they are seen. The AI uses a patrol path to navigate the map. It works fine in the UE4 Editor. But when I packaged the game a…

---

## [Automation Testing GetWorld / Create Actor Instance / Spawn Actor](https://forums.unrealengine.com/t/automation-testing-getworld-create-actor-instance-spawn-actor/729204)

<div class="topic-metadata">

**Author:** [@kwloka](https://forums.unrealengine.com/u/kwloka)\
**Replies:** 3\
**Last updated:** [March 8, 2023, 4:12am UTC](https://forums.unrealengine.com/t/automation-testing-getworld-create-actor-instance-spawn-actor/729204 "2023-03-08T04:12:50Z")

</div>

Hey everyone, I am trying to write a simple automation test for my Actor-Class. In order to test my functions and member-variables I need to spawn an actor / create an instance of the actor class in my test class. Howe…

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

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