# AI

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

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

**Page:** 97

---

## [How do I use EQS to figure out if a player is within range of the navmesh?](https://forums.unrealengine.com/t/how-do-i-use-eqs-to-figure-out-if-a-player-is-within-range-of-the-navmesh/423157)

<div class="topic-metadata">

**Author:** [@Ecnassianer](https://forums.unrealengine.com/u/Ecnassianer)\
**Replies:** 0\
**Last updated:** [April 20, 2018, 6:05pm UTC](https://forums.unrealengine.com/t/how-do-i-use-eqs-to-figure-out-if-a-player-is-within-range-of-the-navmesh/423157 "2018-04-20T18:05:09Z")

</div>

In my game one of the player classes can grappling hook to walls and ceiling and hang from them. Some of the enemies in my game are primarily melee attackers, but they all have a backup ranged attack (i.e, throwing thei…

---

## [How to save all variables on AI](https://forums.unrealengine.com/t/how-to-save-all-variables-on-ai/423086)

<div class="topic-metadata">

**Author:** [@OttoChesterfild](https://forums.unrealengine.com/u/OttoChesterfild)\
**Replies:** 0\
**Last updated:** [April 19, 2018, 8:40pm UTC](https://forums.unrealengine.com/t/how-to-save-all-variables-on-ai/423086 "2018-04-19T20:40:44Z")

</div>

HI! I save my AI location with get all actor of class and forEachLoop and that’s work but, i can’t save variables each AI on the map, only one. I have a two enemy, and them many on map six for example, three meele clas…

---

## [UPathFollowingComponent::CurrentMoveInput not set to zero when movement ceases](https://forums.unrealengine.com/t/upathfollowingcomponent-currentmoveinput-not-set-to-zero-when-movement-ceases/411414)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_49a519741](https://forums.unrealengine.com/u/anonymous_user_49a519741)\
**Replies:** 1\
**Last updated:** [April 19, 2018, 5:56pm UTC](https://forums.unrealengine.com/t/upathfollowingcomponent-currentmoveinput-not-set-to-zero-when-movement-ceases/411414 "2018-04-19T17:56:23Z")

</div>

Pretty self-explanatory. I dot GetCurrentMoveInput with my forward/right vectors so I can get “input axis” values that match how player input axes work. This (and other things) lets my AI and player use the same animatio…

---

## [AIController MoveTo Target Actor Radius not flat](https://forums.unrealengine.com/t/aicontroller-moveto-target-actor-radius-not-flat/422596)

<div class="topic-metadata">

**Author:** [@joessu](https://forums.unrealengine.com/u/joessu)\
**Replies:** 2\
**Last updated:** [April 17, 2018, 8:37pm UTC](https://forums.unrealengine.com/t/aicontroller-moveto-target-actor-radius-not-flat/422596 "2018-04-17T20:37:39Z")

</div>

I am calling a MoveTo of my small ai pawn to a larger player character pawn. The movement sometimes never finishes because the distance from the smaller pawn’s center to the larger pawn is greater than the acceptable rad…

---

## [AI move to Actor](https://forums.unrealengine.com/t/ai-move-to-actor/422832)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_9554853b](https://forums.unrealengine.com/u/anonymous_user_9554853b)\
**Replies:** 3\
**Last updated:** [April 17, 2018, 2:11pm UTC](https://forums.unrealengine.com/t/ai-move-to-actor/422832 "2018-04-17T14:11:08Z")

</div>

Hello everyone! Can you help? I want my bot to move towards another object. I’m trying to do this through Behavior Tree. I created two Tasks, one with random patrolling. With the second arose the problem. I can’t figure …

---

## [How to add life to my models/townies/npc](https://forums.unrealengine.com/t/how-to-add-life-to-my-models-townies-npc/422758)

<div class="topic-metadata">

**Author:** [@CoreyyJacksonn](https://forums.unrealengine.com/u/CoreyyJacksonn)\
**Replies:** 1\
**Last updated:** [April 16, 2018, 7:13pm UTC](https://forums.unrealengine.com/t/how-to-add-life-to-my-models-townies-npc/422758 "2018-04-16T19:13:13Z")

</div>

So how can I add the options for my character, npcs/townies to be able to do daily activities such as eat, sleep,drink, use the bathroom and bathe and shower, etc etc? Im still newbish with ue4 and ive been planning to m…

---

## [How to Attach and then Detach a Skeletal Mesh AI Character to the Player](https://forums.unrealengine.com/t/how-to-attach-and-then-detach-a-skeletal-mesh-ai-character-to-the-player/422656)

<div class="topic-metadata">

**Author:** [@Austinlele](https://forums.unrealengine.com/u/Austinlele)\
**Replies:** 0\
**Last updated:** [April 14, 2018, 10:22pm UTC](https://forums.unrealengine.com/t/how-to-attach-and-then-detach-a-skeletal-mesh-ai-character-to-the-player/422656 "2018-04-14T22:22:27Z")

</div>

Hello everyone! I am attempting to attach a skeletal mesh ai controlled pawn to my player character pawn using the “attach to component” node. This works to an extent but i am finding that the ai pawn is “stuck” where i…

---

## [AI Move to component of pawn](https://forums.unrealengine.com/t/ai-move-to-component-of-pawn/385349)

<div class="topic-metadata">

**Author:** [@fnor](https://forums.unrealengine.com/u/fnor)\
**Replies:** 3\
**Last updated:** [April 14, 2018, 7:48pm UTC](https://forums.unrealengine.com/t/ai-move-to-component-of-pawn/385349 "2018-04-14T19:48:08Z")

</div>

I have an AI that is supposed to navigate via a navmesh to move adjacent to the player’s pawn, stop and reset the tree. The AI logic works fine, however I am getting inconsistent results with the Move To node on the tree…

---

## [Stop Ai Pawn Sensing](https://forums.unrealengine.com/t/stop-ai-pawn-sensing/419662)

<div class="topic-metadata">

**Author:** [@EmilyBec](https://forums.unrealengine.com/u/EmilyBec)\
**Replies:** 36\
**Last updated:** [April 14, 2018, 10:35am UTC](https://forums.unrealengine.com/t/stop-ai-pawn-sensing/419662 "2018-04-14T10:35:55Z")

</div>

How do I disable an AI’s pawn sensing, and then enable it when player enters a trigger box. This is what I have done so far for the Ai to follow the player around.

---

## [AI character will not move](https://forums.unrealengine.com/t/ai-character-will-not-move/380761)

<div class="topic-metadata">

**Author:** [@Aethryx](https://forums.unrealengine.com/u/Aethryx)\
**Replies:** 7\
**Last updated:** [April 14, 2018, 10:17am UTC](https://forums.unrealengine.com/t/ai-character-will-not-move/380761 "2018-04-14T10:17:12Z")

</div>

I’ve scoured the net and this answers page for a solution to my problem and nothing seems to work. I have an AI character set up to chase the player if they enter its line of sight. At the moment, it will continuously fa…

---

## [AI MoveTo is not working](https://forums.unrealengine.com/t/ai-moveto-is-not-working/422550)

<div class="topic-metadata">

**Author:** [@SaviorNT](https://forums.unrealengine.com/u/SaviorNT)\
**Replies:** 3\
**Last updated:** [April 13, 2018, 8:02pm UTC](https://forums.unrealengine.com/t/ai-moveto-is-not-working/422550 "2018-04-13T20:02:15Z")

</div>

Edit2: Acceptance radius is how far the AI will stop from the goal. Hooked on phonics definitely worked for me. Currently running UE 4.19.1 and it seems that the AI MoveTo node is not working and does not move the chara…

---

## [Cannot Create UBehaviourTree pointer - Error: Unrecognized type 'UBehaviourTree' - type must be a UCLASS, USTRUCT or UENUM](https://forums.unrealengine.com/t/cannot-create-ubehaviourtree-pointer-error-unrecognized-type-ubehaviourtree-type-must-be-a-uclass-ustruct-or-uenum/417974)

<div class="topic-metadata">

**Author:** [@Muirey03](https://forums.unrealengine.com/u/Muirey03)\
**Replies:** 4\
**Last updated:** [April 13, 2018, 6:49pm UTC](https://forums.unrealengine.com/t/cannot-create-ubehaviourtree-pointer-error-unrecognized-type-ubehaviourtree-type-must-be-a-uclass-ustruct-or-uenum/417974 "2018-04-13T18:49:57Z")

</div>

I’m trying to create a UBehaviourTree pointer but I get theis error: Error: Unrecognized type ‘UBehaviourTree’ - type must be a UCLASS, USTRUCT or UENUM when I compile it. Here is my code: ElementalsEnemy.h: // Fill ou…

---

## [Navmesh doesn't change on Rebuild Navigation](https://forums.unrealengine.com/t/navmesh-doesnt-change-on-rebuild-navigation/422271)

<div class="topic-metadata">

**Author:** [@Nickcha](https://forums.unrealengine.com/u/Nickcha)\
**Replies:** 2\
**Last updated:** [April 13, 2018, 5:55pm UTC](https://forums.unrealengine.com/t/navmesh-doesnt-change-on-rebuild-navigation/422271 "2018-04-13T17:55:50Z")

</div>

Hi, So I’m experiencing a problem where I spawn Actors into a game, like ressources and buildings. After spawning these, I’m trying to execute the “rebuild navigation” command via “Execute Console Command”. This doesn…

---

## [Making AI pick random point of interest](https://forums.unrealengine.com/t/making-ai-pick-random-point-of-interest/422211)

<div class="topic-metadata">

**Author:** [@CorbisHETB](https://forums.unrealengine.com/u/CorbisHETB)\
**Replies:** 7\
**Last updated:** [April 13, 2018, 4:58pm UTC](https://forums.unrealengine.com/t/making-ai-pick-random-point-of-interest/422211 "2018-04-13T16:58:21Z")

</div>

Hi! I’m trying to create an AI character that picks a point of interest and walks to it. I created a blueprint class based on the TargetPoint class called “PointOfInterest”. My wish is to be able to place these in the …

---

## [AI Question](https://forums.unrealengine.com/t/ai-question/307849)

<div class="topic-metadata">

**Author:** [@Folgad0](https://forums.unrealengine.com/u/Folgad0)\
**Replies:** 5\
**Last updated:** [April 13, 2018, 4:06pm UTC](https://forums.unrealengine.com/t/ai-question/307849 "2018-04-13T16:06:03Z")

</div>

Yes. Use the Behavior Tree blueprint nodes as starting points.

---

## [Detour crowd UE4](https://forums.unrealengine.com/t/detour-crowd-ue4/419940)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_e2ade227](https://forums.unrealengine.com/u/anonymous_user_e2ade227)\
**Replies:** 5\
**Last updated:** [April 13, 2018, 3:43pm UTC](https://forums.unrealengine.com/t/detour-crowd-ue4/419940 "2018-04-13T15:43:43Z")

</div>

Hello, I am trying to use Detour for enemy AI. It will be super helpful if someone can explain the Avoidance config in Crowd manager? Its very hard for me to understand what values to tweak for my purpose as there is l…

---

## [AI patroling skips positions - no idea why](https://forums.unrealengine.com/t/ai-patroling-skips-positions-no-idea-why/421503)

<div class="topic-metadata">

**Author:** [@R0tn3k](https://forums.unrealengine.com/u/R0tn3k)\
**Replies:** 13\
**Last updated:** [April 12, 2018, 8:10pm UTC](https://forums.unrealengine.com/t/ai-patroling-skips-positions-no-idea-why/421503 "2018-04-12T20:10:41Z")

</div>

So my AI’s behaviourtree consists of 2 functions: 1st: gets the first patrolingpoint out of an array stored in the pawn puts it into “MoveToPosition” on a blackboard and puts the vector at the end of the array( delete i…

---

## [AI to remove dead enemies from Enemy list?](https://forums.unrealengine.com/t/ai-to-remove-dead-enemies-from-enemy-list/422417)

<div class="topic-metadata">

**Author:** [@Soarino](https://forums.unrealengine.com/u/Soarino)\
**Replies:** 3\
**Last updated:** [April 12, 2018, 1:43am UTC](https://forums.unrealengine.com/t/ai-to-remove-dead-enemies-from-enemy-list/422417 "2018-04-12T01:43:57Z")

</div>

Hi im not sure how to tell an AI that the enemy that it is current fighting is dead and to remove the enemy that was being though from their enemy list. Any suggestions would be great!

---

## [AI Movement Not Working](https://forums.unrealengine.com/t/ai-movement-not-working/422352)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_f0931b29](https://forums.unrealengine.com/u/anonymous_user_f0931b29)\
**Replies:** 5\
**Last updated:** [April 11, 2018, 12:26pm UTC](https://forums.unrealengine.com/t/ai-movement-not-working/422352 "2018-04-11T12:26:31Z")

</div>

Hey Guys First Post So I am having trouble with my enemy AI where they are not moving or chasing the player character at all. They are just performing their running animation on the spot. They dont acknowledge the play…

---

## [Only observe siblings in Behavior Tree](https://forums.unrealengine.com/t/only-observe-siblings-in-behavior-tree/418868)

<div class="topic-metadata">

**Author:** [@KristofMorva](https://forums.unrealengine.com/u/KristofMorva)\
**Replies:** 1\
**Last updated:** [April 10, 2018, 9:03pm UTC](https://forums.unrealengine.com/t/only-observe-siblings-in-behavior-tree/418868 "2018-04-10T21:03:02Z")

</div>

Hey! I have more levels of conditions in my behavior tree, and as I can see, “lower priority” observation is applied to the whole tree, not only the siblings of the given node (BTDecoratorDIstanceCheck). The problem it …

---

## [Screen turns idle consistently while playing any UE4 game](https://forums.unrealengine.com/t/screen-turns-idle-consistently-while-playing-any-ue4-game/422101)

<div class="topic-metadata">

**Author:** [@Maestraeux](https://forums.unrealengine.com/u/Maestraeux)\
**Replies:** 1\
**Last updated:** [April 9, 2018, 6:49pm UTC](https://forums.unrealengine.com/t/screen-turns-idle-consistently-while-playing-any-ue4-game/422101 "2018-04-09T18:49:42Z")

</div>

I really wanted to personally contact Epic Games about this hyper-niche issue, but I couldn’t find the “correct” avenue. Please let me know if this is the incorrect area to post this. Games tried: Tower Unite, Playerunk…

---

## [Make Pawn face direction it moves](https://forums.unrealengine.com/t/make-pawn-face-direction-it-moves/422164)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_fc8ed27d1](https://forums.unrealengine.com/u/anonymous_user_fc8ed27d1)\
**Replies:** 0\
**Last updated:** [April 9, 2018, 5:35am UTC](https://forums.unrealengine.com/t/make-pawn-face-direction-it-moves/422164 "2018-04-09T05:35:55Z")

</div>

I have a deer pawn that is being controlled by an AI. I created a simple Behavior Tree to make the deer move, but I’m having trouble making the deer rotate in the direction it’s moving. I tried making a service that woul…

---

## [Why does my enemy leave the NavMesh?](https://forums.unrealengine.com/t/why-does-my-enemy-leave-the-navmesh/422130)

<div class="topic-metadata">

**Author:** [@peterdfinn](https://forums.unrealengine.com/u/peterdfinn)\
**Replies:** 6\
**Last updated:** [April 8, 2018, 5:29pm UTC](https://forums.unrealengine.com/t/why-does-my-enemy-leave-the-navmesh/422130 "2018-04-08T17:29:42Z")

</div>

Hi! I’ve created a frog-like enemy in my game that hops toward the player. However, I want to make sure the frog uses a NavMesh, so it doesn’t do something stupid like jump off a cliff or repeatedly jump into a wall. Unf…

---

## [Show route with simple move to actor](https://forums.unrealengine.com/t/show-route-with-simple-move-to-actor/422131)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_cd1fa529](https://forums.unrealengine.com/u/anonymous_user_cd1fa529)\
**Replies:** 2\
**Last updated:** [April 8, 2018, 5:04pm UTC](https://forums.unrealengine.com/t/show-route-with-simple-move-to-actor/422131 "2018-04-08T17:04:11Z")

</div>

Hi I am busy making AI for a tower defense game.I am using a simple move to actor to have the AI move from the spawn point to the exit point. My question is can I somehow show the route that the enemies are running wit…

---

## [AI intersecting Navmesh](https://forums.unrealengine.com/t/ai-intersecting-navmesh/368112)

<div class="topic-metadata">

**Author:** [@Quicksymphony](https://forums.unrealengine.com/u/Quicksymphony)\
**Replies:** 1\
**Last updated:** [April 8, 2018, 3:54pm UTC](https://forums.unrealengine.com/t/ai-intersecting-navmesh/368112 "2018-04-08T15:54:39Z")

</div>

Hey All. Pretty simple question here. I have an enemy AI i made and merged into this new project. The problem is however that after migrating it, the AI makes a hole in the navmesh. (It did not do this in the previous pr…

---

## [Mouse Click & Drag to look around (StreetView system)](https://forums.unrealengine.com/t/mouse-click-drag-to-look-around-streetview-system/422052)

<div class="topic-metadata">

**Author:** [@KidLoko](https://forums.unrealengine.com/u/KidLoko)\
**Replies:** 0\
**Last updated:** [April 7, 2018, 11:48am UTC](https://forums.unrealengine.com/t/mouse-click-drag-to-look-around-streetview-system/422052 "2018-04-07T11:48:44Z")

</div>

Hello everyone I want to make a very simple project, just to make a custom virtual tour with 360 photos. How can I make a click and drag sistem to move the camera like in street view? I want the mouse cursor to be visi…

---

## [AI Breadth First Search](https://forums.unrealengine.com/t/ai-breadth-first-search/422011)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_28c382f7](https://forums.unrealengine.com/u/anonymous_user_28c382f7)\
**Replies:** 0\
**Last updated:** [April 6, 2018, 7:26pm UTC](https://forums.unrealengine.com/t/ai-breadth-first-search/422011 "2018-04-06T19:26:51Z")

</div>

So my question is that when creating an AI roam and chase, does the Behavior tree count as a breadth first search? since the behavior tree starts from the top first root node and then goes down(get location or roam or mo…

---

## [How two create an Cover Ai](https://forums.unrealengine.com/t/how-two-create-an-cover-ai/421997)

<div class="topic-metadata">

**Author:** [@schenten\_a](https://forums.unrealengine.com/u/schenten_a)\
**Replies:** 0\
**Last updated:** [April 6, 2018, 4:22pm UTC](https://forums.unrealengine.com/t/how-two-create-an-cover-ai/421997 "2018-04-06T16:22:43Z")

</div>

Hello i am have setup the ue4 First Person Project an need help how two setup an Cover ai that could i later shoot. I was Trying two implement an ai from an project i sell on the marketplace but it didnt work that way li…

---

## [Movement in formation without breaking it between start point and destiny](https://forums.unrealengine.com/t/movement-in-formation-without-breaking-it-between-start-point-and-destiny/398525)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_e828057c](https://forums.unrealengine.com/u/anonymous_user_e828057c)\
**Replies:** 3\
**Last updated:** [April 5, 2018, 11:32pm UTC](https://forums.unrealengine.com/t/movement-in-formation-without-breaking-it-between-start-point-and-destiny/398525 "2018-04-05T23:32:22Z")

</div>

Hi there! First of all, english is not my main language. I’m sorry if some part of this post seems clunky or are directly wrong written. I’m a rookie in Unreal Engine, trying to learn the basis of AI and Navigation sys…

---

## [AI Does Not Move If I'm Too Far](https://forums.unrealengine.com/t/ai-does-not-move-if-im-too-far/419065)

<div class="topic-metadata">

**Author:** [@Dreaghy](https://forums.unrealengine.com/u/Dreaghy)\
**Replies:** 1\
**Last updated:** [April 5, 2018, 9:18pm UTC](https://forums.unrealengine.com/t/ai-does-not-move-if-im-too-far/419065 "2018-04-05T21:18:36Z")

</div>

Hello. I have a big map which I put one of my A.I. But when I’m too far, the A.I won’t move at all. I’ve calculated the vector length of the location of the A.I and my location and when I’m close to 20 000 units it mo…

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

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