# AI

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

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

**Page:** 87

---

## [Issue with AI and navmesh in 2D](https://forums.unrealengine.com/t/issue-with-ai-and-navmesh-in-2d/438403)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_fdd1d9bc](https://forums.unrealengine.com/u/anonymous_user_fdd1d9bc)\
**Replies:** 0\
**Last updated:** [November 27, 2018, 12:49pm UTC](https://forums.unrealengine.com/t/issue-with-ai-and-navmesh-in-2d/438403 "2018-11-27T12:49:26Z")

</div>

Hi I’m a new UE4 developer and I’m currently working on a 2D game, I have an issue with our AI in the game. I’m using navmesh for area’s they can walk around. The AI is working fine only in some NavMesh area’s and so…

---

## [I need Event On Possess , in c++?](https://forums.unrealengine.com/t/i-need-event-on-possess-in-c/307598)

<div class="topic-metadata">

**Author:** [@MSD](https://forums.unrealengine.com/u/MSD)\
**Replies:** 4\
**Last updated:** [July 2, 2017, 2:40pm UTC](https://forums.unrealengine.com/t/i-need-event-on-possess-in-c/307598 "2017-07-02T14:40:58Z")

</div>

Hi Guys; In AI-Controller Blueprint, there is an event called “Event On Possess”. I would like to an equivalent of this event in C++ , please. Actually, I need this event body in cpp , to put the codes (Like MoveToLoca…

---

## [Ai move to 30 Meters of an actor](https://forums.unrealengine.com/t/ai-move-to-30-meters-of-an-actor/438210)

<div class="topic-metadata">

**Author:** [@OG\_FATFACE\_420](https://forums.unrealengine.com/u/OG_FATFACE_420)\
**Replies:** 4\
**Last updated:** [November 24, 2018, 6:28pm UTC](https://forums.unrealengine.com/t/ai-move-to-30-meters-of-an-actor/438210 "2018-11-24T18:28:29Z")

</div>

So I in my game, I have an Ai with pawn sensing. The Move to actor node works fine but I was wondering if there was a way for me to move my ai towards an actor, but it can’t go inside 30 meters of the actor. How would I …

---

## [How do I make my enemy ai hear my player character](https://forums.unrealengine.com/t/how-do-i-make-my-enemy-ai-hear-my-player-character/438092)

<div class="topic-metadata">

**Author:** [@TheANSER-42](https://forums.unrealengine.com/u/TheANSER-42)\
**Replies:** 2\
**Last updated:** [November 22, 2018, 4:14pm UTC](https://forums.unrealengine.com/t/how-do-i-make-my-enemy-ai-hear-my-player-character/438092 "2018-11-22T16:14:06Z")

</div>

I’ve looked at dozens of online tutorials, and none of them helped at all. This is what I have so far. What do I do to make my enemy ai actually hear my player character and start to follow him when they hear it? alt…

---

## [AI Controller cast fail with multiplayer](https://forums.unrealengine.com/t/ai-controller-cast-fail-with-multiplayer/438054)

<div class="topic-metadata">

**Author:** [@Elites94](https://forums.unrealengine.com/u/Elites94)\
**Replies:** 3\
**Last updated:** [November 22, 2018, 2:47pm UTC](https://forums.unrealengine.com/t/ai-controller-cast-fail-with-multiplayer/438054 "2018-11-22T14:47:21Z")

</div>

Hello, (sorry for my mistakes I am not english) I am doing a multiplayer game. I have created an AI that work really great… if you are the server. In fact I used an AI that I had in pack that I bought in the marketpla…

---

## [How to destroy an AI controlled character by pressing a key?](https://forums.unrealengine.com/t/how-to-destroy-an-ai-controlled-character-by-pressing-a-key/438045)

<div class="topic-metadata">

**Author:** [@VR\_Lab](https://forums.unrealengine.com/u/VR_Lab)\
**Replies:** 2\
**Last updated:** [November 22, 2018, 11:31am UTC](https://forums.unrealengine.com/t/how-to-destroy-an-ai-controlled-character-by-pressing-a-key/438045 "2018-11-22T11:31:27Z")

</div>

Hello everybody, I’m using a ThirdPerson template. I’ve imported a character from FUSE and assigned the mesh to the ThirdPersonCharacter BP. It is controlled by an AI controller BP which I’ve set with a “MoveToLocation”…

---

## [How do I make the enemy shoot "backwards" in C++? It currently only shoots forward and I don't understand why. I've tried messing with the direction but I don't seem to do anng](https://forums.unrealengine.com/t/how-do-i-make-the-enemy-shoot-backwards-in-c-it-currently-only-shoots-forward-and-i-dont-understand-why-ive-tried-messing-with-the-direction-but-i-dont-seem-to-do-anng/438058)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_d3dee2fa](https://forums.unrealengine.com/u/anonymous_user_d3dee2fa)\
**Replies:** 0\
**Last updated:** [November 21, 2018, 5:35pm UTC](https://forums.unrealengine.com/t/how-do-i-make-the-enemy-shoot-backwards-in-c-it-currently-only-shoots-forward-and-i-dont-understand-why-ive-tried-messing-with-the-direction-but-i-dont-seem-to-do-anng/438058 "2018-11-21T17:35:09Z")

</div>

if (!CanFireShot()) return; EmptyActionPoints(); FVector start = GetActorLocation(); start += GunOffset; start.Y = 0.f; FVector target = dest; target.Y = 0.f; FRotator direction = UKismetMathLibrary::FindLookAtRot…

---

## [AIController SetFocus what does it do?](https://forums.unrealengine.com/t/aicontroller-setfocus-what-does-it-do/298677)

<div class="topic-metadata">

**Author:** [@Ghar](https://forums.unrealengine.com/u/Ghar)\
**Replies:** 6\
**Last updated:** [November 19, 2018, 3:36pm UTC](https://forums.unrealengine.com/t/aicontroller-setfocus-what-does-it-do/298677 "2018-11-19T15:36:38Z")

</div>

For some time I thought that setting a pawn’s AIController focus to another actor (using the node SetFocus) made the pawn to always face that other actor, or attempt to using the rotation yaw speed. But now that I’ve be…

---

## [AI using EQS will stop shortly after using the MoveTo Node](https://forums.unrealengine.com/t/ai-using-eqs-will-stop-shortly-after-using-the-moveto-node/437902)

<div class="topic-metadata">

**Author:** [@Kardaras](https://forums.unrealengine.com/u/Kardaras)\
**Replies:** 1\
**Last updated:** [November 19, 2018, 6:18am UTC](https://forums.unrealengine.com/t/ai-using-eqs-will-stop-shortly-after-using-the-moveto-node/437902 "2018-11-19T06:18:55Z")

</div>

This is how MoveTo works. It takes task, executes it, then process new task. I have fixed this behavior using custom MoveTo node. Maybe you will find it useful.

---

## [AI Robot-arm move individual parts to an object](https://forums.unrealengine.com/t/ai-robot-arm-move-individual-parts-to-an-object/437688)

<div class="topic-metadata">

**Author:** [@steeljaeger](https://forums.unrealengine.com/u/steeljaeger)\
**Replies:** 2\
**Last updated:** [November 18, 2018, 9:01pm UTC](https://forums.unrealengine.com/t/ai-robot-arm-move-individual-parts-to-an-object/437688 "2018-11-18T21:01:56Z")

</div>

Hi I have two models of my robot-arm as BP. Where my goal is to use it as an AI. The arm should move and grab an object that crosses it´s path. Model 1 has movement with key inputs such as W-forward,D-right etc… this w…

---

## [How do i use eqs to react to player movements](https://forums.unrealengine.com/t/how-do-i-use-eqs-to-react-to-player-movements/437859)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_1ee2453d](https://forums.unrealengine.com/u/anonymous_user_1ee2453d)\
**Replies:** 0\
**Last updated:** [November 18, 2018, 10:30am UTC](https://forums.unrealengine.com/t/how-do-i-use-eqs-to-react-to-player-movements/437859 "2018-11-18T10:30:28Z")

</div>

I’m trying to use the eqs system so my AI characters can find cover and the best route to approach the player. however as soon as they move towards a location they cant sense any change in player position until they reac…

---

## [Unit Spawn after, move and attack](https://forums.unrealengine.com/t/unit-spawn-after-move-and-attack/437752)

<div class="topic-metadata">

**Author:** [@BellKite2](https://forums.unrealengine.com/u/BellKite2)\
**Replies:** 5\
**Last updated:** [November 18, 2018, 4:26am UTC](https://forums.unrealengine.com/t/unit-spawn-after-move-and-attack/437752 "2018-11-18T04:26:36Z")

</div>

I apologize for using the translator because I am not good at English. I want to make a game of RTS like Clash Royale, but it is hard to move after sponsoring the unit. I’m still a beginner. If the map shows this, …

---

## [NavMesh and Custom NavArea Filter not updating dynamically](https://forums.unrealengine.com/t/navmesh-and-custom-navarea-filter-not-updating-dynamically/437840)

<div class="topic-metadata">

**Author:** [@MetricZero](https://forums.unrealengine.com/u/MetricZero)\
**Replies:** 0\
**Last updated:** [November 17, 2018, 10:50pm UTC](https://forums.unrealengine.com/t/navmesh-and-custom-navarea-filter-not-updating-dynamically/437840 "2018-11-17T22:50:09Z")

</div>

Hello, I’m using the default Nav Mesh Bounds Volume for my AI to walk around on, which simply follows the player. In addition to this, I added a NavModifier with a custom NavFilter/AreaClass to a piece of physics driven…

---

## [AI MoveTo do nothing when custom destination specified](https://forums.unrealengine.com/t/ai-moveto-do-nothing-when-custom-destination-specified/437821)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_4ff6011e](https://forums.unrealengine.com/u/anonymous_user_4ff6011e)\
**Replies:** 1\
**Last updated:** [November 17, 2018, 5:48pm UTC](https://forums.unrealengine.com/t/ai-moveto-do-nothing-when-custom-destination-specified/437821 "2018-11-17T17:48:31Z")

</div>

First of all, I want the pawn to move to the player character location but still floating above player’s character head. (The pawn is the flying enemy) So I add 200 to z axis from current actor location like this Ho…

---

## [How to implement BTService in C++](https://forums.unrealengine.com/t/how-to-implement-btservice-in-c/382032)

<div class="topic-metadata">

**Author:** [@Tengrichan](https://forums.unrealengine.com/u/Tengrichan)\
**Replies:** 3\
**Last updated:** [November 17, 2018, 4:57am UTC](https://forums.unrealengine.com/t/how-to-implement-btservice-in-c/382032 "2018-11-17T04:57:43Z")

</div>

Hi there! I am trying to convert my Behavior Tree tasks,services,etc. from BP into C++ for faster runtime and more customisation. However I can’t seem to figure out how to implement a Service in C++. As the events def…

---

## [Ai Move To Navigation Tolerance](https://forums.unrealengine.com/t/ai-move-to-navigation-tolerance/404226)

<div class="topic-metadata">

**Author:** [@Grimeh](https://forums.unrealengine.com/u/Grimeh)\
**Replies:** 5\
**Last updated:** [November 17, 2018, 2:35am UTC](https://forums.unrealengine.com/t/ai-move-to-navigation-tolerance/404226 "2018-11-17T02:35:42Z")

</div>

Hi, I currently have an AI character who wants to move to an AStaticMeshActor via the behaviour tree Move To node, however is unable to because the destination actor’s mesh affects the navmesh. Obviously I can confi…

---

## [How to make AI always move at constant speed when pathfinding?](https://forums.unrealengine.com/t/how-to-make-ai-always-move-at-constant-speed-when-pathfinding/437203)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_995592e01](https://forums.unrealengine.com/u/anonymous_user_995592e01)\
**Replies:** 1\
**Last updated:** [November 15, 2018, 10:12pm UTC](https://forums.unrealengine.com/t/how-to-make-ai-always-move-at-constant-speed-when-pathfinding/437203 "2018-11-15T22:12:50Z")

</div>

I’m using detour crowd AI Controller and whenever the AI rounds a corner or tries to avoid another pawn, it slows down and walks slowly around the obstacle. I’ve tried messing with acceleration values and minimum speed …

---

## [How set a vraibale from blackboard with all AI in level?](https://forums.unrealengine.com/t/how-set-a-vraibale-from-blackboard-with-all-ai-in-level/437363)

<div class="topic-metadata">

**Author:** [@AAriyAA](https://forums.unrealengine.com/u/AAriyAA)\
**Replies:** 4\
**Last updated:** [November 15, 2018, 2:48pm UTC](https://forums.unrealengine.com/t/how-set-a-vraibale-from-blackboard-with-all-ai-in-level/437363 "2018-11-15T14:48:22Z")

</div>

for example, one ai saw the first player and set Enemy in blackboard, I want its set for all AI in the map, it means all AI aware of enemy . I will thank full if someone could help. I did something like this but after …

---

## [SimpleMove failed after reloading level (PlayerController: movement not allowed)](https://forums.unrealengine.com/t/simplemove-failed-after-reloading-level-playercontroller-movement-not-allowed/437270)

<div class="topic-metadata">

**Author:** [@Alara](https://forums.unrealengine.com/u/Alara)\
**Replies:** 1\
**Last updated:** [November 13, 2018, 6:37pm UTC](https://forums.unrealengine.com/t/simplemove-failed-after-reloading-level-playercontroller-movement-not-allowed/437270 "2018-11-13T18:37:51Z")

</div>

Good day and thank you very much for your time! I have a problem and I do not know how to solve it. I really hope for your help. In my game, a character moves on click, using “Simple Move to Location”. When the game le…

---

## [My AI Character isn't moving to me?](https://forums.unrealengine.com/t/my-ai-character-isnt-moving-to-me/437494)

<div class="topic-metadata">

**Author:** [@OG\_FATFACE\_420](https://forums.unrealengine.com/u/OG_FATFACE_420)\
**Replies:** 3\
**Last updated:** [November 12, 2018, 8:34pm UTC](https://forums.unrealengine.com/t/my-ai-character-isnt-moving-to-me/437494 "2018-11-12T20:34:05Z")

</div>

So, I have set up my AI Character to move to me. It doesn’t seem to be working. What did I do wrong? Here is a video of my blueprint code. Video: Issue with UE4 - YouTube Thanks!

---

## [How to use EQS to make AI choose a waypoint in higher Z value location?](https://forums.unrealengine.com/t/how-to-use-eqs-to-make-ai-choose-a-waypoint-in-higher-z-value-location/437466)

<div class="topic-metadata">

**Author:** [@rio22](https://forums.unrealengine.com/u/rio22)\
**Replies:** 1\
**Last updated:** [November 12, 2018, 3:20am UTC](https://forums.unrealengine.com/t/how-to-use-eqs-to-make-ai-choose-a-waypoint-in-higher-z-value-location/437466 "2018-11-12T03:20:59Z")

</div>

Also what generators test and settings do I need to use /put in?

---

## [How to remove from array during play?](https://forums.unrealengine.com/t/how-to-remove-from-array-during-play/437438)

<div class="topic-metadata">

**Author:** [@Re4verbot](https://forums.unrealengine.com/u/Re4verbot)\
**Replies:** 1\
**Last updated:** [November 11, 2018, 3:07pm UTC](https://forums.unrealengine.com/t/how-to-remove-from-array-during-play/437438 "2018-11-11T15:07:45Z")

</div>

I am trying to figure out simply how, during gameplay, the blueprint can say Branch"If Array is \> 100" Delete first 50 entries.

---

## [Upgrading my project from 4.19.1 to 4.20 breaks simple move to location/actor](https://forums.unrealengine.com/t/upgrading-my-project-from-4-19-1-to-4-20-breaks-simple-move-to-location-actor/432911)

<div class="topic-metadata">

**Author:** [@GarettHunter](https://forums.unrealengine.com/u/GarettHunter)\
**Replies:** 4\
**Last updated:** [November 10, 2018, 8:52pm UTC](https://forums.unrealengine.com/t/upgrading-my-project-from-4-19-1-to-4-20-breaks-simple-move-to-location-actor/432911 "2018-11-10T20:52:23Z")

</div>

I converted my project from 4.19.1 to 4.20 using engine’s conversion dialog. I converted in place. I noticed a few error messages in the output log regarding renaming the Engine.Navigation to something like NavigationSy…

---

## [How do I make separete events in one enemy?](https://forums.unrealengine.com/t/how-do-i-make-separete-events-in-one-enemy/437391)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_d7c37670](https://forums.unrealengine.com/u/anonymous_user_d7c37670)\
**Replies:** 1\
**Last updated:** [November 10, 2018, 6:09pm UTC](https://forums.unrealengine.com/t/how-do-i-make-separete-events-in-one-enemy/437391 "2018-11-10T18:09:23Z")

</div>

The idea is for the enemy to hold 4 numbers, when shooting the correct one he dies, or else it gets faster.

---

## [When using a NavMesh with Dynamic Modifiers Only, parts of it disappear and don't come back](https://forums.unrealengine.com/t/when-using-a-navmesh-with-dynamic-modifiers-only-parts-of-it-disappear-and-dont-come-back/437339)

<div class="topic-metadata">

**Author:** [@Dividual](https://forums.unrealengine.com/u/Dividual)\
**Replies:** 0\
**Last updated:** [November 9, 2018, 4:35pm UTC](https://forums.unrealengine.com/t/when-using-a-navmesh-with-dynamic-modifiers-only-parts-of-it-disappear-and-dont-come-back/437339 "2018-11-09T16:35:09Z")

</div>

There’s a big vehicle that makes holes in the navmesh. With works fine, most of the time, but in some areas (these are always the same areas, although it seems to be different areas in the build and editor…). The world …

---

## [An Error ocurred while trying to generate project files](https://forums.unrealengine.com/t/an-error-ocurred-while-trying-to-generate-project-files/430897)

<div class="topic-metadata">

**Author:** [@mgranizo](https://forums.unrealengine.com/u/mgranizo)\
**Replies:** 5\
**Last updated:** [November 8, 2018, 11:40pm UTC](https://forums.unrealengine.com/t/an-error-ocurred-while-trying-to-generate-project-files/430897 "2018-11-08T23:40:04Z")

</div>

Pleas help, I am an absolute noob. When I try to start a new C++ project, I get an error message. If I start a new blueprint project, all works well. Thank all in advance for your kind help. The error I get says the foll…

---

## [LogCharacter: Warning: SetBase failed! Recursion detected](https://forums.unrealengine.com/t/logcharacter-warning-setbase-failed-recursion-detected/436886)

<div class="topic-metadata">

**Author:** [@gozu](https://forums.unrealengine.com/u/gozu)\
**Replies:** 2\
**Last updated:** [November 7, 2018, 4:17pm UTC](https://forums.unrealengine.com/t/logcharacter-warning-setbase-failed-recursion-detected/436886 "2018-11-07T16:17:28Z")

</div>

Hi Guys, i’ve had this issue for awhile now and i have had no luck whatsoever fixing it. Seems to be very hard for me to pinpoint what exactly is triggering it. I have multiple AI pawns, all based off a single c++ class…

---

## [Can you randomize AI Navigation?](https://forums.unrealengine.com/t/can-you-randomize-ai-navigation/437106)

<div class="topic-metadata">

**Author:** [@Duddee](https://forums.unrealengine.com/u/Duddee)\
**Replies:** 0\
**Last updated:** [November 6, 2018, 4:25am UTC](https://forums.unrealengine.com/t/can-you-randomize-ai-navigation/437106 "2018-11-06T04:25:44Z")

</div>

I’m having issues with my AI moving in a super “uniform” manner. If I have a group of AI that all have different starting locations (that are somewhere near each other) and I give them the same ending location, they will…

---

## [How to use nav link proxy to make the AI jump?](https://forums.unrealengine.com/t/how-to-use-nav-link-proxy-to-make-the-ai-jump/354480)

<div class="topic-metadata">

**Author:** [@anon71236692](https://forums.unrealengine.com/u/anon71236692)\
**Replies:** 2\
**Last updated:** [November 4, 2018, 9:16pm UTC](https://forums.unrealengine.com/t/how-to-use-nav-link-proxy-to-make-the-ai-jump/354480 "2018-11-04T21:16:40Z")

</div>

The nav proxy link only allows my AI to fall but not to jump back, doesn’t matter if it is set both ways, left to right or right to left. I know there is a solution with C++, but I don’t understand C++.

---

## [Can some one please make a tutorial how to make player invisible to ai detection under certain conditions?](https://forums.unrealengine.com/t/can-some-one-please-make-a-tutorial-how-to-make-player-invisible-to-ai-detection-under-certain-conditions/416537)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_7c51ad0c1](https://forums.unrealengine.com/u/anonymous_user_7c51ad0c1)\
**Replies:** 1\
**Last updated:** [November 4, 2018, 3:15am UTC](https://forums.unrealengine.com/t/can-some-one-please-make-a-tutorial-how-to-make-player-invisible-to-ai-detection-under-certain-conditions/416537 "2018-11-04T03:15:46Z")

</div>

CAN SOMEONE PLEASE SHOW ME HOW TO MAKE PLAYER INVISIBLE TO AI PERCEPTION WHEN CERTAIN CONDITIONS ARE TRUE? such as while holding shift player become invisible to AI and AI goes back to patroling

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

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