# AI

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

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

**Page:** 101

---

## [How to make line trace ignore AI collision capsule and return bone name?](https://forums.unrealengine.com/t/how-to-make-line-trace-ignore-ai-collision-capsule-and-return-bone-name/416748)

<div class="topic-metadata">

**Author:** [@jrw77](https://forums.unrealengine.com/u/jrw77)\
**Replies:** 1\
**Last updated:** [February 8, 2018, 8:31pm UTC](https://forums.unrealengine.com/t/how-to-make-line-trace-ignore-ai-collision-capsule-and-return-bone-name/416748 "2018-02-08T20:31:57Z")

</div>

I’ve set up a simple linetrace shoot blueprint which works as intended. It adds force in the direction of the “bullet” on components it hits. However I’m scripting some basic AI, and want to hit the actual mesh of the ac…

---

## [AI Chase if player too far](https://forums.unrealengine.com/t/ai-chase-if-player-too-far/416704)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_63afa5a0](https://forums.unrealengine.com/u/anonymous_user_63afa5a0)\
**Replies:** 5\
**Last updated:** [February 8, 2018, 6:50pm UTC](https://forums.unrealengine.com/t/ai-chase-if-player-too-far/416704 "2018-02-08T18:50:17Z")

</div>

Hello all! I’ve realized that I am lacking some basic knowledge. I’ve made a script for AI to follow trigger points throughout the map, but how would one go about at making an AI chase player if he is too far from AI? A…

---

## [Behaviortree MoveTo Node does not finish execution](https://forums.unrealengine.com/t/behaviortree-moveto-node-does-not-finish-execution/409639)

<div class="topic-metadata">

**Author:** [@Rasponien](https://forums.unrealengine.com/u/Rasponien)\
**Replies:** 4\
**Last updated:** [February 8, 2018, 6:39pm UTC](https://forums.unrealengine.com/t/behaviortree-moveto-node-does-not-finish-execution/409639 "2018-02-08T18:39:49Z")

</div>

Hello! I’ve wanted to create a simple patrol movement between two simple actors with location that point to eachother. I managed to do it earlier, but for some reason it doesn’t work right now. I have the simple path ac…

---

## [How to Make BP for bullet hell Boss](https://forums.unrealengine.com/t/how-to-make-bp-for-bullet-hell-boss/416231)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_2416f3f6](https://forums.unrealengine.com/u/anonymous_user_2416f3f6)\
**Replies:** 3\
**Last updated:** [February 6, 2018, 3:31pm UTC](https://forums.unrealengine.com/t/how-to-make-bp-for-bullet-hell-boss/416231 "2018-02-06T15:31:47Z")

</div>

OK i am working on a 3d bullet hell game and everything was going smoothly till i tried to get some info on how to program the boss and struggled to fined even a trace of helpfulness. Since I am fairly new to the BP I do…

---

## [BOTS AI UE2 (Swat 4)](https://forums.unrealengine.com/t/bots-ai-ue2-swat-4/416579)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_6905c7b3](https://forums.unrealengine.com/u/anonymous_user_6905c7b3)\
**Replies:** 0\
**Last updated:** [February 6, 2018, 2:37pm UTC](https://forums.unrealengine.com/t/bots-ai-ue2-swat-4/416579 "2018-02-06T14:37:57Z")

</div>

Hey there, i want to know how to create bots AI with UE2 (for swat 4 game) maybe there is a guide to build it? any information? bots for mp server online. Thanks,

---

## [Can NavMeshBound help a character to follow a pawn?](https://forums.unrealengine.com/t/can-navmeshbound-help-a-character-to-follow-a-pawn/415712)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_7106c6741](https://forums.unrealengine.com/u/anonymous_user_7106c6741)\
**Replies:** 4\
**Last updated:** [February 6, 2018, 10:05am UTC](https://forums.unrealengine.com/t/can-navmeshbound-help-a-character-to-follow-a-pawn/415712 "2018-02-06T10:05:19Z")

</div>

NavMeshBound can find a character and follow it well. But every time when I replace the character with a pawn. It failed. How can I make a character follow a pawn?

---

## [Spawn Ai not executing custom events on the pawn it controls](https://forums.unrealengine.com/t/spawn-ai-not-executing-custom-events-on-the-pawn-it-controls/416536)

<div class="topic-metadata">

**Author:** [@FardreamStudios](https://forums.unrealengine.com/u/FardreamStudios)\
**Replies:** 0\
**Last updated:** [February 6, 2018, 5:27am UTC](https://forums.unrealengine.com/t/spawn-ai-not-executing-custom-events-on-the-pawn-it-controls/416536 "2018-02-06T05:27:04Z")

</div>

Spawning Ai on the game mode called from the player. Everything works fine on the client and host, except for some multicasted events that never get called. When placed in the level the pawn ai/executes work perfectly. w…

---

## [Is my algorithm bad here?](https://forums.unrealengine.com/t/is-my-algorithm-bad-here/416034)

<div class="topic-metadata">

**Author:** [@yuyake79](https://forums.unrealengine.com/u/yuyake79)\
**Replies:** 10\
**Last updated:** [February 6, 2018, 3:23am UTC](https://forums.unrealengine.com/t/is-my-algorithm-bad-here/416034 "2018-02-06T03:23:27Z")

</div>

Hi, I copied this algorithm from someone else’s post. But for some reason I am getting Monday when it’s actually Thursday now (here in Sydney, Australia). Can any of you geniuses help me out here? Any help will be appr…

---

## [How to create cars moving automaically on the road](https://forums.unrealengine.com/t/how-to-create-cars-moving-automaically-on-the-road/416453)

<div class="topic-metadata">

**Author:** [@123Tanish](https://forums.unrealengine.com/u/123Tanish)\
**Replies:** 1\
**Last updated:** [February 5, 2018, 11:36am UTC](https://forums.unrealengine.com/t/how-to-create-cars-moving-automaically-on-the-road/416453 "2018-02-05T11:36:26Z")

</div>

I am a complete beginner. I don’t know coding(may learn if helpful). I want to create cars moving automatically on the streets. We can crash our car onto them, enter them, etc. similar to GTA V. Please anyone help me ont…

---

## [Surrender like PayDay](https://forums.unrealengine.com/t/surrender-like-payday/416328)

<div class="topic-metadata">

**Author:** [@JoshKnightDesign](https://forums.unrealengine.com/u/JoshKnightDesign)\
**Replies:** 3\
**Last updated:** [February 4, 2018, 2:07am UTC](https://forums.unrealengine.com/t/surrender-like-payday/416328 "2018-02-04T02:07:48Z")

</div>

Looking to have a surrender like system where the AI stops all actions and plays an animation once the F key has been hit twice while the player is looking at them

---

## [AI Silhouette](https://forums.unrealengine.com/t/ai-silhouette/416307)

<div class="topic-metadata">

**Author:** [@JoshKnightDesign](https://forums.unrealengine.com/u/JoshKnightDesign)\
**Replies:** 2\
**Last updated:** [February 3, 2018, 4:38pm UTC](https://forums.unrealengine.com/t/ai-silhouette/416307 "2018-02-03T16:38:45Z")

</div>

I want add a function where if a buttons is pressed the AI silhouettes will be visible though objects on the map for a short period of time

---

## [Checking blackboard value doesn't work?](https://forums.unrealengine.com/t/checking-blackboard-value-doesnt-work/416298)

<div class="topic-metadata">

**Author:** [@eliasfrost](https://forums.unrealengine.com/u/eliasfrost)\
**Replies:** 0\
**Last updated:** [February 3, 2018, 9:01am UTC](https://forums.unrealengine.com/t/checking-blackboard-value-doesnt-work/416298 "2018-02-03T09:01:40Z")

</div>

Hi! I’m currently working with a behavior tree for my characters and I’ve stumbled upon yet another problem. As the image below shows I have a decorator that will check if an actor is not null. Then use this to determin…

---

## [How to set Aim Offset for enemy AI](https://forums.unrealengine.com/t/how-to-set-aim-offset-for-enemy-ai/361733)

<div class="topic-metadata">

**Author:** [@JigSaw73](https://forums.unrealengine.com/u/JigSaw73)\
**Replies:** 1\
**Last updated:** [February 2, 2018, 4:46pm UTC](https://forums.unrealengine.com/t/how-to-set-aim-offset-for-enemy-ai/361733 "2018-02-02T16:46:39Z")

</div>

I would like to set an enemy Mech to shoot at my vehicle. It is working now to the point where the AI will chase and shoot when I’m in the “Sensing” area in front of the Mech. The problem is, his gun is mounted on his Ri…

---

## [\[AI\] How can i make only certain enemies detect player?](https://forums.unrealengine.com/t/ai-how-can-i-make-only-certain-enemies-detect-player/416154)

<div class="topic-metadata">

**Author:** [@LBOG](https://forums.unrealengine.com/u/LBOG)\
**Replies:** 2\
**Last updated:** [February 2, 2018, 3:42pm UTC](https://forums.unrealengine.com/t/ai-how-can-i-make-only-certain-enemies-detect-player/416154 "2018-02-02T15:42:28Z")

</div>

Okay so i have an enemy whitch will be placed in groups and i want that once one of the group detects you all other enemies detect you. To do that i have a public Enemy character array in the Enemy Character where i set…

---

## [How do I make an object rotate to AI character](https://forums.unrealengine.com/t/how-do-i-make-an-object-rotate-to-ai-character/416191)

<div class="topic-metadata">

**Author:** [@WoahstudiosGames](https://forums.unrealengine.com/u/WoahstudiosGames)\
**Replies:** 1\
**Last updated:** [February 2, 2018, 9:49am UTC](https://forums.unrealengine.com/t/how-do-i-make-an-object-rotate-to-ai-character/416191 "2018-02-02T09:49:57Z")

</div>

So I have a turret but I cant figure out how to make it rotate to an AI not me the player? Any Ideas?

---

## [How to rotate AIPerception or attach it to socket?](https://forums.unrealengine.com/t/how-to-rotate-aiperception-or-attach-it-to-socket/323838)

<div class="topic-metadata">

**Author:** [@SaOk](https://forums.unrealengine.com/u/SaOk)\
**Replies:** 2\
**Last updated:** [January 31, 2018, 12:23am UTC](https://forums.unrealengine.com/t/how-to-rotate-aiperception-or-attach-it-to-socket/323838 "2018-01-31T00:23:38Z")

</div>

I would need the AI controller’s sight sense follow actor’s head rotation or variable value (instead of default body), but cant find away rotate it. AiPerception in controller also have parent socket but cant write into …

---

## [如何导出dtNavMesh 数据，可以让recastNavMesh正确识别](https://forums.unrealengine.com/t/dtnavmesh-recastnavmesh/415883)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_c7630c331](https://forums.unrealengine.com/u/anonymous_user_c7630c331)\
**Replies:** 0\
**Last updated:** [January 30, 2018, 7:37am UTC](https://forums.unrealengine.com/t/dtnavmesh-recastnavmesh/415883 "2018-01-30T07:37:09Z")

</div>

我希望从引擎中导出dtNavMesh, 把这些数据让recastNavMesh读取解析，并且构建寻路

---

## [How to correctly attach a TargetToFollow (in AI Behaivour Tree) to Player?](https://forums.unrealengine.com/t/how-to-correctly-attach-a-targettofollow-in-ai-behaivour-tree-to-player/415615)

<div class="topic-metadata">

**Author:** [@cyberkoala](https://forums.unrealengine.com/u/cyberkoala)\
**Replies:** 0\
**Last updated:** [January 27, 2018, 12:01am UTC](https://forums.unrealengine.com/t/how-to-correctly-attach-a-targettofollow-in-ai-behaivour-tree-to-player/415615 "2018-01-27T00:01:31Z")

</div>

So the problem is that Root does not pass data to selector and botAI doesn’t react on Player. Maybe i should reattach TargetToFollow to another Object? I’ve created a Tree such in an example: https://docs.unrealengin…

---

## [AI Perception doesn’t work in development build](https://forums.unrealengine.com/t/ai-perception-doesn-t-work-in-development-build/415238)

<div class="topic-metadata">

**Author:** [@Abeysaurus](https://forums.unrealengine.com/u/Abeysaurus)\
**Replies:** 2\
**Last updated:** [January 25, 2018, 4:45pm UTC](https://forums.unrealengine.com/t/ai-perception-doesn-t-work-in-development-build/415238 "2018-01-25T16:45:16Z")

</div>

I have a custom AI character using AI Perception. And I also have custom settings for each sense. Everything seems to work as planned when I PIE. But when I do a build, the AI characters don’t move and turning on the AI …

---

## [Can you make AI perception detect pawns of the same blueprint class as itself?](https://forums.unrealengine.com/t/can-you-make-ai-perception-detect-pawns-of-the-same-blueprint-class-as-itself/359098)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_ecff5664](https://forums.unrealengine.com/u/anonymous_user_ecff5664)\
**Replies:** 9\
**Last updated:** [January 25, 2018, 4:32pm UTC](https://forums.unrealengine.com/t/can-you-make-ai-perception-detect-pawns-of-the-same-blueprint-class-as-itself/359098 "2018-01-25T16:32:11Z")

</div>

How? I’ve tried registering the pawn as a stimuli source and setting detecting to detect neutrals, friendlies and enemies but my soldiers still aren’t detecting other soldiers.

---

## [Why does my Ai Char break during specific spawn/destroy phases? (BP)](https://forums.unrealengine.com/t/why-does-my-ai-char-break-during-specific-spawn-destroy-phases-bp/415472)

<div class="topic-metadata">

**Author:** [@Pyriae](https://forums.unrealengine.com/u/Pyriae)\
**Replies:** 0\
**Last updated:** [January 24, 2018, 10:42pm UTC](https://forums.unrealengine.com/t/why-does-my-ai-char-break-during-specific-spawn-destroy-phases-bp/415472 "2018-01-24T22:42:26Z")

</div>

Hello! This is my first time posting, apologies if I miss some etiquette. I have two strange problems with my papercharacter BP during specific spawning/destroying instances. Firstly, if I spawn this actor in midair t…

---

## [AI Character animation with key press?](https://forums.unrealengine.com/t/ai-character-animation-with-key-press/415436)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_e500d277](https://forums.unrealengine.com/u/anonymous_user_e500d277)\
**Replies:** 17\
**Last updated:** [January 24, 2018, 7:05pm UTC](https://forums.unrealengine.com/t/ai-character-animation-with-key-press/415436 "2018-01-24T19:05:13Z")

</div>

Hello , i want to make the girl charcter do a animation , when i press “E” ( When i’m in the box trigger) , how i can do it? That animation will be do just one time , because after that animation i will do a effect a…

---

## [Auto Possess AI "Placed in World" doesn't work in build](https://forums.unrealengine.com/t/auto-possess-ai-placed-in-world-doesnt-work-in-build/415418)

<div class="topic-metadata">

**Author:** [@Abeysaurus](https://forums.unrealengine.com/u/Abeysaurus)\
**Replies:** 0\
**Last updated:** [January 24, 2018, 10:32am UTC](https://forums.unrealengine.com/t/auto-possess-ai-placed-in-world-doesnt-work-in-build/415418 "2018-01-24T10:32:30Z")

</div>

I noticed that “Auto Posses AI” only seems to work with “Spawned” and not “Placed in World”. I got my AI character to be spawned on Event Begin Play and when I play the built game, The Behaviour tree works as intended. W…

---

## [AI move to with EQS not working as expected](https://forums.unrealengine.com/t/ai-move-to-with-eqs-not-working-as-expected/415309)

<div class="topic-metadata">

**Author:** [@lordevilpoptart](https://forums.unrealengine.com/u/lordevilpoptart)\
**Replies:** 1\
**Last updated:** [January 23, 2018, 11:16pm UTC](https://forums.unrealengine.com/t/ai-move-to-with-eqs-not-working-as-expected/415309 "2018-01-23T23:16:30Z")

</div>

I am building out AI for RTS. Working on AI gathering resources I successfully built out the AI being able to gather one resource type and when i went to expand that i ran into some odd issues 1st) my resource types ar…

---

## [敵aiが一歩も動かない](https://forums.unrealengine.com/t/ai/415137)

<div class="topic-metadata">

**Author:** [@Dolce824](https://forums.unrealengine.com/u/Dolce824)\
**Replies:** 14\
**Last updated:** [January 23, 2018, 1:54am UTC](https://forums.unrealengine.com/t/ai/415137 "2018-01-23T01:54:25Z")

</div>

UE4初心者です。 現在Third Personテンプレートでアクションゲームを作っており、その敵キャラのAIを作っている最中なのですが、思うように動いてくれないのです…。指定範囲内でプレイヤーを見つけたら追いかけ、それ以外の時はランダムに動き回る、というふうに動かしたくて画像のようなBP、BTを作ったのですが、なぜか敵キャラが一歩も動かないのです。公式サイトを見て作ったのでBPなどの問題ではないのかもしれませんが、だとしたら、挙動…

---

## [Behavior Tree ran after character is deleted](https://forums.unrealengine.com/t/behavior-tree-ran-after-character-is-deleted/415298)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_fd027cc3](https://forums.unrealengine.com/u/anonymous_user_fd027cc3)\
**Replies:** 0\
**Last updated:** [January 22, 2018, 11:04pm UTC](https://forums.unrealengine.com/t/behavior-tree-ran-after-character-is-deleted/415298 "2018-01-22T23:04:53Z")

</div>

We have a character in the scene running a behavior tree (via the controller’s BehaviorTreeComponent) .We then call Destroy on the character. This results in the BehaviorTree immediately stopping itself via BehaviorTreeC…

---

## [Is it better to use? (A.I)](https://forums.unrealengine.com/t/is-it-better-to-use-a-i/415267)

<div class="topic-metadata">

**Author:** [@C.Satizabal](https://forums.unrealengine.com/u/C.Satizabal)\
**Replies:** 1\
**Last updated:** [January 22, 2018, 9:32pm UTC](https://forums.unrealengine.com/t/is-it-better-to-use-a-i/415267 "2018-01-22T21:32:36Z")

</div>

I have multiple enemies, and I want the A.I to behave different, and I already have 1 enemy setup with the BB/BT. Now should I make a new BB/BT for the other enemy or use the same one?

---

## [AI Controller can't use the Y-Axis](https://forums.unrealengine.com/t/ai-controller-cant-use-the-y-axis/415235)

<div class="topic-metadata">

**Author:** [@Josai](https://forums.unrealengine.com/u/Josai)\
**Replies:** 0\
**Last updated:** [January 22, 2018, 12:09pm UTC](https://forums.unrealengine.com/t/ai-controller-cant-use-the-y-axis/415235 "2018-01-22T12:09:06Z")

</div>

AI build an AI controller in C++ and I use generally the X Axis but the AI should walk a bit on the Y-Axis. I use the MoveToActor function to let the AI walk to a target point or the player but he never walk on the Y-Axi…

---

## [Flying AI won't target above a certain height](https://forums.unrealengine.com/t/flying-ai-wont-target-above-a-certain-height/415060)

<div class="topic-metadata">

**Author:** [@Timbiat](https://forums.unrealengine.com/u/Timbiat)\
**Replies:** 1\
**Last updated:** [January 21, 2018, 3:28pm UTC](https://forums.unrealengine.com/t/flying-ai-wont-target-above-a-certain-height/415060 "2018-01-21T15:28:40Z")

</div>

I have a flying AI that works fine, unless you set its target to above 357 on the Z-axis. Anything below that and it works, and if it needs to go above that it will do so without issue, but if the target is above that di…

---

## [Enum class variables in BT tasks are not visible in BT editor](https://forums.unrealengine.com/t/enum-class-variables-in-bt-tasks-are-not-visible-in-bt-editor/414868)

<div class="topic-metadata">

**Author:** [@kirdaybov](https://forums.unrealengine.com/u/kirdaybov)\
**Replies:** 1\
**Last updated:** [January 19, 2018, 7:13pm UTC](https://forums.unrealengine.com/t/enum-class-variables-in-bt-tasks-are-not-visible-in-bt-editor/414868 "2018-01-19T19:13:13Z")

</div>

Problem: blueprint variables of type enum class EMyEnum : uint8 are not represented in behavior tree graph editor. The problem doesn’t reproduce for enum EMyEnum and for namespace EMyEnum { enum Type{}} enums. Steps: M…

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

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