# AI

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

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

**Page:** 80

---

## [蓝图ai无法移动/攻击](https://forums.unrealengine.com/t/ai/448923)

<div class="topic-metadata">

**Author:** [@Tvi1](https://forums.unrealengine.com/u/Tvi1)\
**Replies:** 0\
**Last updated:** [May 13, 2019, 7:52pm UTC](https://forums.unrealengine.com/t/ai/448923 "2019-05-13T19:52:28Z")

</div>

跟随教程做了一个第三人称动作游戏，复制了一份角色蓝图作为AI蓝图，删除了所有无关蓝图组件，做完后AI角色不能正常跟随玩家/被击中效果，求指导哪里出了问题

---

## [How would i duplicate an Ai character?](https://forums.unrealengine.com/t/how-would-i-duplicate-an-ai-character/448786)

<div class="topic-metadata">

**Author:** [@Shred\_Hed\_Gaming](https://forums.unrealengine.com/u/Shred_Hed_Gaming)\
**Replies:** 6\
**Last updated:** [May 13, 2019, 3:12pm UTC](https://forums.unrealengine.com/t/how-would-i-duplicate-an-ai-character/448786 "2019-05-13T15:12:43Z")

</div>

Are you asking about making a duplicate in runtime? Or you need to make a duplicate of a blueprint in the editor? In the first case, it’s better just to spawn a new character from the same blueprint/class as the first c…

---

## [Make AI move away from Enemy AI](https://forums.unrealengine.com/t/make-ai-move-away-from-enemy-ai/448617)

<div class="topic-metadata">

**Author:** [@GentalGiants](https://forums.unrealengine.com/u/GentalGiants)\
**Replies:** 8\
**Last updated:** [May 13, 2019, 12:13pm UTC](https://forums.unrealengine.com/t/make-ai-move-away-from-enemy-ai/448617 "2019-05-13T12:13:58Z")

</div>

Hey Guys, Kind of stuck on this one, I need to find the Enemies location and move away from that location. Both the Ally and Enemy are AI’s with Behavior Trees, i’m having trouble finding the enemies location. I believ…

---

## [Ai strafing when moving using behavior tree](https://forums.unrealengine.com/t/ai-strafing-when-moving-using-behavior-tree/448758)

<div class="topic-metadata">

**Author:** [@Prab\_1](https://forums.unrealengine.com/u/Prab_1)\
**Replies:** 1\
**Last updated:** [May 13, 2019, 10:49am UTC](https://forums.unrealengine.com/t/ai-strafing-when-moving-using-behavior-tree/448758 "2019-05-13T10:49:43Z")

</div>

In below pic red color is only for vehicle. pink is crossing both vehicle and pedestrians. green is for pedestrians.Problem is pedestrians turn to 90 randomly clockwise or anti clockwise and start to strafe while iam…

---

## [Problem with player getting slung when hit by AI](https://forums.unrealengine.com/t/problem-with-player-getting-slung-when-hit-by-ai/448826)

<div class="topic-metadata">

**Author:** [@Zacharyedgell](https://forums.unrealengine.com/u/Zacharyedgell)\
**Replies:** 0\
**Last updated:** [May 12, 2019, 2:55am UTC](https://forums.unrealengine.com/t/problem-with-player-getting-slung-when-hit-by-ai/448826 "2019-05-12T02:55:24Z")

</div>

When my AI hits the player with his sword the player gets slung across the map and same for the AI when its hit by the player. There is no blueprints to this except for on to take health using on hit. Thank you in advan…

---

## [AI not working with multiple possessed enemies](https://forums.unrealengine.com/t/ai-not-working-with-multiple-possessed-enemies/364580)

<div class="topic-metadata">

**Author:** [@Piero2495](https://forums.unrealengine.com/u/Piero2495)\
**Replies:** 5\
**Last updated:** [May 11, 2019, 6:55pm UTC](https://forums.unrealengine.com/t/ai-not-working-with-multiple-possessed-enemies/364580 "2019-05-11T18:55:09Z")

</div>

Hi! I’ve followed a serie of tutorials in order to create a simple AI that chases the player if close enough, and wanders in the area if the player is too far away. It (mostly) works if I place one enemy in the level, bu…

---

## [BrainComponent is not initialized if RunBehaviorTree is not called](https://forums.unrealengine.com/t/braincomponent-is-not-initialized-if-runbehaviortree-is-not-called/448809)

<div class="topic-metadata">

**Author:** [@Bitwaker](https://forums.unrealengine.com/u/Bitwaker)\
**Replies:** 0\
**Last updated:** [May 11, 2019, 2:39pm UTC](https://forums.unrealengine.com/t/braincomponent-is-not-initialized-if-runbehaviortree-is-not-called/448809 "2019-05-11T14:39:20Z")

</div>

I was playing with BT Tasks in C++ and I found out that my BrainComponent is always null. The Controller I was working on is a sublcass of AAIController that has its own reference to a BehaviourTree implemented through …

---

## [C++ BTTask Finish Execute](https://forums.unrealengine.com/t/c-bttask-finish-execute/395728)

<div class="topic-metadata">

**Author:** [@TysonEX](https://forums.unrealengine.com/u/TysonEX)\
**Replies:** 5\
**Last updated:** [May 11, 2019, 1:37pm UTC](https://forums.unrealengine.com/t/c-bttask-finish-execute/395728 "2019-05-11T13:37:18Z")

</div>

Cast(GetOuter()) fails for your node because it’s not instanced (bCreateNodeInstance set to true). So one solution would be to mark it as such. Another solution would be to get your hands on BTComponent instance in a cas…

---

## [AI Module Team Id](https://forums.unrealengine.com/t/ai-module-team-id/304662)

<div class="topic-metadata">

**Author:** [@mirsabayu](https://forums.unrealengine.com/u/mirsabayu)\
**Replies:** 3\
**Last updated:** [May 11, 2019, 9:23am UTC](https://forums.unrealengine.com/t/ai-module-team-id/304662 "2019-05-11T09:23:30Z")

</div>

i wanted to set my AI in team. in AI module i know that there is FGenericTeamId is it had to be submitted in pawnsensingcomponent( but it just for sight and hear) or in perception??? or i had to just make it to be a var…

---

## [AIPerceptionComponent: attach it to character or controller?](https://forums.unrealengine.com/t/aiperceptioncomponent-attach-it-to-character-or-controller/448414)

<div class="topic-metadata">

**Author:** [@Bitwaker](https://forums.unrealengine.com/u/Bitwaker)\
**Replies:** 3\
**Last updated:** [May 11, 2019, 9:08am UTC](https://forums.unrealengine.com/t/aiperceptioncomponent-attach-it-to-character-or-controller/448414 "2019-05-11T09:08:11Z")

</div>

Hi the AI Controller gets the AIPerception component and your pawn gets the AIPerceptionStimuliSource. Check this Tutorial Series: Playlist

---

## [Trying to Duplicate a character but the duplicated character doesnt work](https://forums.unrealengine.com/t/trying-to-duplicate-a-character-but-the-duplicated-character-doesnt-work/448774)

<div class="topic-metadata">

**Author:** [@Shred\_Hed\_Gaming](https://forums.unrealengine.com/u/Shred_Hed_Gaming)\
**Replies:** 1\
**Last updated:** [May 11, 2019, 7:30am UTC](https://forums.unrealengine.com/t/trying-to-duplicate-a-character-but-the-duplicated-character-doesnt-work/448774 "2019-05-11T07:30:08Z")

</div>

i have an AI set up that walks around. i duplicated the blueprint of it to make different types of people. but the ai doesnt walk around. im guessing its something to do with the controller?

---

## [AI Perception Mark player as enemy](https://forums.unrealengine.com/t/ai-perception-mark-player-as-enemy/354383)

<div class="topic-metadata">

**Author:** [@Napoleonite](https://forums.unrealengine.com/u/Napoleonite)\
**Replies:** 16\
**Last updated:** [May 11, 2019, 7:14am UTC](https://forums.unrealengine.com/t/ai-perception-mark-player-as-enemy/354383 "2019-05-11T07:14:39Z")

</div>

How do I mark the player as an enemy for my AI so that they will sense him when using “Detection by Affiliation: Detect Enemies”? Also see this old topic: https://answers.unrealengine.com/questions/285849/aiperception-h…

---

## [How i can use AIStimulus Age?](https://forums.unrealengine.com/t/how-i-can-use-aistimulus-age/448737)

<div class="topic-metadata">

**Author:** [@knijka1994](https://forums.unrealengine.com/u/knijka1994)\
**Replies:** 0\
**Last updated:** [May 10, 2019, 1:13pm UTC](https://forums.unrealengine.com/t/how-i-can-use-aistimulus-age/448737 "2019-05-10T13:13:59Z")

</div>

Hello everyone! I need to use Stimulus age (of sight and hearing) to define where my AI should go (last hearing location or last sight location). If last hearing location is older than last sight location go to last sig…

---

## [RVO avoidance in vehicle BP](https://forums.unrealengine.com/t/rvo-avoidance-in-vehicle-bp/426716)

<div class="topic-metadata">

**Author:** [@Abraar](https://forums.unrealengine.com/u/Abraar)\
**Replies:** 1\
**Last updated:** [May 8, 2019, 11:22pm UTC](https://forums.unrealengine.com/t/rvo-avoidance-in-vehicle-bp/426716 "2019-05-08T23:22:15Z")

</div>

Recently i came across RVO avoidance in vehicle movement component setting and i tried to add it to my vehicle AI and it didn’t work quite well as the AI just spins in circle after avoiding the first pawn in its way. Th…

---

## [Get AI to climb through window and chase player](https://forums.unrealengine.com/t/get-ai-to-climb-through-window-and-chase-player/448632)

<div class="topic-metadata">

**Author:** [@Murkoy](https://forums.unrealengine.com/u/Murkoy)\
**Replies:** 0\
**Last updated:** [May 8, 2019, 3:38pm UTC](https://forums.unrealengine.com/t/get-ai-to-climb-through-window-and-chase-player/448632 "2019-05-08T15:38:11Z")

</div>

Hi All, Not sure if anyone can help me but it’s worth a shot. I am trying to get my AI character to jump through a window if the player is inside a house. For my player to jump through the window, I simply teleport his…

---

## [Learnable behaviour tree](https://forums.unrealengine.com/t/learnable-behaviour-tree/448536)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_f0d273e0](https://forums.unrealengine.com/u/anonymous_user_f0d273e0)\
**Replies:** 0\
**Last updated:** [May 7, 2019, 1:24pm UTC](https://forums.unrealengine.com/t/learnable-behaviour-tree/448536 "2019-05-07T13:24:04Z")

</div>

Hi, guys! I need some help. I need somehow to dynamically study my behaviour tree. For example: i have 2 characters: Rengar and Kha’Zix. Rengar can: attack, jump, hide in steals, etc. Kha’Zix can only walk towards enemy.…

---

## [Can't reactivate character movement](https://forums.unrealengine.com/t/cant-reactivate-character-movement/448501)

<div class="topic-metadata">

**Author:** [@HawkTeevs](https://forums.unrealengine.com/u/HawkTeevs)\
**Replies:** 11\
**Last updated:** [May 7, 2019, 3:55am UTC](https://forums.unrealengine.com/t/cant-reactivate-character-movement/448501 "2019-05-07T03:55:59Z")

</div>

So I have a AI system where if they go into a box collision of a door, then it will play a door opening animation for the AI. I do with by deactivating the character’s movements, then reactivating it once the animation i…

---

## [Enemy AI behaves as though it’s next to me when it is directly above or below me](https://forums.unrealengine.com/t/enemy-ai-behaves-as-though-it-s-next-to-me-when-it-is-directly-above-or-below-me/448271)

<div class="topic-metadata">

**Author:** [@cpenny20](https://forums.unrealengine.com/u/cpenny20)\
**Replies:** 0\
**Last updated:** [May 2, 2019, 11:38pm UTC](https://forums.unrealengine.com/t/enemy-ai-behaves-as-though-it-s-next-to-me-when-it-is-directly-above-or-below-me/448271 "2019-05-02T23:38:44Z")

</div>

We have enemy characters in my game who approach us - a simple enough task. This logic works as expected until we start moving to higher or lower levels. The enemies on the ground below us or on higher floors will freque…

---

## [How c++ Enum use in Behavior tree](https://forums.unrealengine.com/t/how-c-enum-use-in-behavior-tree/428346)

<div class="topic-metadata">

**Author:** [@funkish](https://forums.unrealengine.com/u/funkish)\
**Replies:** 4\
**Last updated:** [May 1, 2019, 3:27pm UTC](https://forums.unrealengine.com/t/how-c-enum-use-in-behavior-tree/428346 "2019-05-01T15:27:16Z")

</div>

I am interesting in how to use my c++ enum in Behavior tree from blackboard. I create Blueprint function library and I can add to any actor and use it. But how Blackboard tree can access to my c++ enum code? My example…

---

## [Navmesh - lower priority of moving to a certain area](https://forums.unrealengine.com/t/navmesh-lower-priority-of-moving-to-a-certain-area/448172)

<div class="topic-metadata">

**Author:** [@ongakken](https://forums.unrealengine.com/u/ongakken)\
**Replies:** 0\
**Last updated:** [May 1, 2019, 1:22pm UTC](https://forums.unrealengine.com/t/navmesh-lower-priority-of-moving-to-a-certain-area/448172 "2019-05-01T13:22:16Z")

</div>

Hi, I have set up a navmesh and created a character that randomly moves in it (random location service in a BT). Now I’d like to manipulate the priority of CPU generating coordinates for the character to move to for a c…

---

## [Implementing IGenericTeamAgentInterface](https://forums.unrealengine.com/t/implementing-igenericteamagentinterface/448006)

<div class="topic-metadata">

**Author:** [@yateam](https://forums.unrealengine.com/u/yateam)\
**Replies:** 3\
**Last updated:** [April 30, 2019, 10:12am UTC](https://forums.unrealengine.com/t/implementing-igenericteamagentinterface/448006 "2019-04-30T10:12:13Z")

</div>

Hello, I am trying to set up AIPerception component for my bots and at some point I faced the problem “Detection by Affiliation”. I followed this tutorial to set up teams: But it did not help me. For some reason, my…

---

## [How to get a BTTaskNode working with an editor based behavior tree](https://forums.unrealengine.com/t/how-to-get-a-bttasknode-working-with-an-editor-based-behavior-tree/448028)

<div class="topic-metadata">

**Author:** [@JasperLyo](https://forums.unrealengine.com/u/JasperLyo)\
**Replies:** 2\
**Last updated:** [April 30, 2019, 5:31am UTC](https://forums.unrealengine.com/t/how-to-get-a-bttasknode-working-with-an-editor-based-behavior-tree/448028 "2019-04-30T05:31:12Z")

</div>

Hi, i’m currently starting work on changing some of my projects blueprint functionalities into C++. I’m starting by making my task nodes in C++ however i’m struggling to find resources to show me how to set up task nodes…

---

## [Behavior Tree inactive or in state STEPS BACK: -1](https://forums.unrealengine.com/t/behavior-tree-inactive-or-in-state-steps-back-1/397463)

<div class="topic-metadata">

**Author:** [@Rasponien](https://forums.unrealengine.com/u/Rasponien)\
**Replies:** 2\
**Last updated:** [April 29, 2019, 12:24pm UTC](https://forums.unrealengine.com/t/behavior-tree-inactive-or-in-state-steps-back-1/397463 "2019-04-29T12:24:09Z")

</div>

Hi! I´ve encountered this weird problem recently, that my behaviortree just won´t start. I have setup my AIcharacter, possessed it with my AIController and inside the possess function I´ve run the behaviortree. Even whe…

---

## [How to get an enemy AI to stop moving](https://forums.unrealengine.com/t/how-to-get-an-enemy-ai-to-stop-moving/384758)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_1143cbc91](https://forums.unrealengine.com/u/anonymous_user_1143cbc91)\
**Replies:** 5\
**Last updated:** [April 27, 2019, 7:11pm UTC](https://forums.unrealengine.com/t/how-to-get-an-enemy-ai-to-stop-moving/384758 "2019-04-27T19:11:13Z")

</div>

I am trying to get it so that when an enemy AI runs into a trigger box he stops moving. Does anyone know how to do that using blueprints?

---

## [Why enemies don't attack me?](https://forums.unrealengine.com/t/why-enemies-dont-attack-me/447902)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_4bd4a257](https://forums.unrealengine.com/u/anonymous_user_4bd4a257)\
**Replies:** 0\
**Last updated:** [April 26, 2019, 10:01am UTC](https://forums.unrealengine.com/t/why-enemies-dont-attack-me/447902 "2019-04-26T10:01:53Z")

</div>

I have setting the enemies In blue print for searching me and after attack my player character. But when I testing the program, they move in random for the nav mesh area and ignore me… How can I solve that? I send you s…

---

## [Nav Mesh Bounds not working in 4.20](https://forums.unrealengine.com/t/nav-mesh-bounds-not-working-in-4-20/436320)

<div class="topic-metadata">

**Author:** [@Abeysaurus](https://forums.unrealengine.com/u/Abeysaurus)\
**Replies:** 8\
**Last updated:** [April 25, 2019, 3:40pm UTC](https://forums.unrealengine.com/t/nav-mesh-bounds-not-working-in-4-20/436320 "2019-04-25T15:40:39Z")

</div>

I recently upgraded to 4.20 and I noticed all my AI characters stopped moving. So i looked up the Nav Mesh Bounds, and it doesn’t seem to be generating a NavMesh anymore. I didn’t have to change any project settings or N…

---

## [AI calculating Jump](https://forums.unrealengine.com/t/ai-calculating-jump/447832)

<div class="topic-metadata">

**Author:** [@Monster-OO](https://forums.unrealengine.com/u/Monster-OO)\
**Replies:** 0\
**Last updated:** [April 25, 2019, 10:40am UTC](https://forums.unrealengine.com/t/ai-calculating-jump/447832 "2019-04-25T10:40:56Z")

</div>

Hello guys, I want to make an AI that recognizes an obstacle and calculates the jump needed or calculates if the AI character can make the jump. I am kinda stuck on the idea part so i will need help a bit from more exp…

---

## [AI Behavior stop if spawned](https://forums.unrealengine.com/t/ai-behavior-stop-if-spawned/446901)

<div class="topic-metadata">

**Author:** [@anon89423513](https://forums.unrealengine.com/u/anon89423513)\
**Replies:** 1\
**Last updated:** [April 23, 2019, 8:55am UTC](https://forums.unrealengine.com/t/ai-behavior-stop-if-spawned/446901 "2019-04-23T08:55:47Z")

</div>

Hello eveyrone ! I’m working on the AI of our game, and I followed 's tutorial on the AI (since I know nothing on this), and it works just as we need for our game. The only problem is, the AI does not happend to have t…

---

## [Communication between AI Characters](https://forums.unrealengine.com/t/communication-between-ai-characters/447659)

<div class="topic-metadata">

**Author:** [@M1nsDev](https://forums.unrealengine.com/u/M1nsDev)\
**Replies:** 0\
**Last updated:** [April 22, 2019, 6:45pm UTC](https://forums.unrealengine.com/t/communication-between-ai-characters/447659 "2019-04-22T18:45:27Z")

</div>

Hey there, I have one classic enemy ai character class (walk to random points, chasing player, attacking player) and currently I am trying to let the AI’s “communicate”. So when I shoot one of them and he get damage wit…

---

## [Creating a BP Actor That Creates AI Navigation](https://forums.unrealengine.com/t/creating-a-bp-actor-that-creates-ai-navigation/447646)

<div class="topic-metadata">

**Author:** [@Austinlele](https://forums.unrealengine.com/u/Austinlele)\
**Replies:** 0\
**Last updated:** [April 22, 2019, 4:17pm UTC](https://forums.unrealengine.com/t/creating-a-bp-actor-that-creates-ai-navigation/447646 "2019-04-22T16:17:29Z")

</div>

Hello, I allow the player to create BP actors that are “paths” (road, trail, etc.) that I would like to allow the ai to walk on. I want the ai to only be able to walk on the path actors. Questions: Do I need an initia…

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

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