# AI

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

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

**Page:** 73

---

## [Can't change a BlackBoard value from Player's BP](https://forums.unrealengine.com/t/cant-change-a-blackboard-value-from-players-bp/457742)

<div class="topic-metadata">

**Author:** [@EstebanUE4](https://forums.unrealengine.com/u/EstebanUE4)\
**Replies:** 15\
**Last updated:** [October 30, 2019, 5:14pm UTC](https://forums.unrealengine.com/t/cant-change-a-blackboard-value-from-players-bp/457742 "2019-10-30T17:14:30Z")

</div>

I have an AI wandering random (working perfectly) and I want to access to a Bool Key in my BlackBoard to trigger a decorator and make the AI come to the player. What’s up? I can’t acces to the value. Behaviour tree: …

---

## [Why my AI character can't move](https://forums.unrealengine.com/t/why-my-ai-character-cant-move/457764)

<div class="topic-metadata">

**Author:** [@farewellzheng](https://forums.unrealengine.com/u/farewellzheng)\
**Replies:** 0\
**Last updated:** [October 30, 2019, 2:28am UTC](https://forums.unrealengine.com/t/why-my-ai-character-cant-move/457764 "2019-10-30T02:28:25Z")

</div>

My AI can’t move at all. I watch a video from Youtube teaching me how to get my AI charactaer move randomly.\[link text\]\[1\]. I do exactly the same as the video, my bluprints are right and I have a navmesh setting properly…

---

## [Player pressing buttons also triggers for AI in overlap volumes](https://forums.unrealengine.com/t/player-pressing-buttons-also-triggers-for-ai-in-overlap-volumes/457738)

<div class="topic-metadata">

**Author:** [@Slimulis](https://forums.unrealengine.com/u/Slimulis)\
**Replies:** 1\
**Last updated:** [October 29, 2019, 4:23pm UTC](https://forums.unrealengine.com/t/player-pressing-buttons-also-triggers-for-ai-in-overlap-volumes/457738 "2019-10-29T16:23:12Z")

</div>

As the title suggests, if the player is in a begin overlap volume and goes to open the door, it also opens the door for any AI that is also in a overlap volume. This also includes volumes I have set up for the player to …

---

## [AI won't see player until they're next to each other](https://forums.unrealengine.com/t/ai-wont-see-player-until-theyre-next-to-each-other/457687)

<div class="topic-metadata">

**Author:** [@Jbg0801\_2](https://forums.unrealengine.com/u/Jbg0801_2)\
**Replies:** 1\
**Last updated:** [October 28, 2019, 6:54pm UTC](https://forums.unrealengine.com/t/ai-wont-see-player-until-theyre-next-to-each-other/457687 "2019-10-28T18:54:05Z")

</div>

so I was building an AI for a game I’m working on, and it has the ability to explode when coming within about 5 meters of the player. However, they are supposed to actively run towards the player to add an extra threat w…

---

## [Move pawn to other place](https://forums.unrealengine.com/t/move-pawn-to-other-place/457581)

<div class="topic-metadata">

**Author:** [@HornokTibor](https://forums.unrealengine.com/u/HornokTibor)\
**Replies:** 1\
**Last updated:** [October 27, 2019, 1:09pm UTC](https://forums.unrealengine.com/t/move-pawn-to-other-place/457581 "2019-10-27T13:09:23Z")

</div>

Hello! I defaultly posess the pawn set in the GameMode settings. I want this same pawn to move on the map in straight line (no avoidance) to the next point. I put down a navmesh, and set up ai, but the instance I defau…

---

## [GetRandomPointInNavigableRadius returns always 'false'](https://forums.unrealengine.com/t/getrandompointinnavigableradius-returns-always-false/457570)

<div class="topic-metadata">

**Author:** [@3HoPort](https://forums.unrealengine.com/u/3HoPort)\
**Replies:** 0\
**Last updated:** [October 26, 2019, 1:48pm UTC](https://forums.unrealengine.com/t/getrandompointinnavigableradius-returns-always-false/457570 "2019-10-26T13:48:40Z")

</div>

In my code of BehaviorTree task node, I used GetRandomPointInNavigableRadius() to get vector point where a npc move to. below is some of my code. EBTNodeResult::Type UBTTask\_FindPatrolPos::ExecuteTask(UBehaviorTreeCom…

---

## [Setting Network Owner for RPCs](https://forums.unrealengine.com/t/setting-network-owner-for-rpcs/339063)

<div class="topic-metadata">

**Author:** [@Heoki](https://forums.unrealengine.com/u/Heoki)\
**Replies:** 1\
**Last updated:** [October 24, 2019, 10:33am UTC](https://forums.unrealengine.com/t/setting-network-owner-for-rpcs/339063 "2019-10-24T10:33:20Z")

</div>

I am trying to call RPCs on actors that are spawned in the world. I was wondering if there was a dynamic way of setting the owner for RPCs for those actors? For instance if I have a bunch of AIs in the game that I can “…

---

## [Offset character pathfinding from corners](https://forums.unrealengine.com/t/offset-character-pathfinding-from-corners/457325)

<div class="topic-metadata">

**Author:** [@Darth\_Biomech](https://forums.unrealengine.com/u/Darth_Biomech)\
**Replies:** 0\
**Last updated:** [October 22, 2019, 1:38pm UTC](https://forums.unrealengine.com/t/offset-character-pathfinding-from-corners/457325 "2019-10-22T13:38:16Z")

</div>

I’ve noticed that Navigation Testing Actor has a parameter “Offset from Corners Distance”, which forces it to generate path further from walls. My AIs have this issue when they try to hug the wall when turning which some…

---

## [How do i make my AI stop following me when I look at it](https://forums.unrealengine.com/t/how-do-i-make-my-ai-stop-following-me-when-i-look-at-it/457221)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_d7ed1b44](https://forums.unrealengine.com/u/anonymous_user_d7ed1b44)\
**Replies:** 2\
**Last updated:** [October 21, 2019, 9:59pm UTC](https://forums.unrealengine.com/t/how-do-i-make-my-ai-stop-following-me-when-i-look-at-it/457221 "2019-10-21T21:59:12Z")

</div>

This may sound dumb but i want to be able to make my ai stop following me when i look at it but it continues when im not looking. Like a lion trying to hunt its prey. Example: A horror game where if i turn on my flashli…

---

## [Behaviour tree selecting wrong node condition passes](https://forums.unrealengine.com/t/behaviour-tree-selecting-wrong-node-condition-passes/457229)

<div class="topic-metadata">

**Author:** [@ahuss](https://forums.unrealengine.com/u/ahuss)\
**Replies:** 0\
**Last updated:** [October 20, 2019, 11:22pm UTC](https://forums.unrealengine.com/t/behaviour-tree-selecting-wrong-node-condition-passes/457229 "2019-10-20T23:22:57Z")

</div>

Does anyone have any idea what is happening to this behaviour tree. I have the bool set to true but the decorator fails. The left node should be selected instead its using the right node and i cant figure out why. The s…

---

## [Flashlight should stops AI movement, then resume movement when flashlight isn't shining on them](https://forums.unrealengine.com/t/flashlight-should-stops-ai-movement-then-resume-movement-when-flashlight-isnt-shining-on-them/431555)

<div class="topic-metadata">

**Author:** [@f00d4tehg0dz](https://forums.unrealengine.com/u/f00d4tehg0dz)\
**Replies:** 5\
**Last updated:** [October 20, 2019, 9:27pm UTC](https://forums.unrealengine.com/t/flashlight-should-stops-ai-movement-then-resume-movement-when-flashlight-isnt-shining-on-them/431555 "2019-10-20T21:27:52Z")

</div>

The idea is that when the flashlight is shining on any AI, it pauses their movement until the light is no longer shining on them. I’ve used Line Trace to detect when its on them or not. As you can see below. I’ve told T…

---

## [How to get outer angles of polygon?](https://forums.unrealengine.com/t/how-to-get-outer-angles-of-polygon/403645)

<div class="topic-metadata">

**Author:** [@Slavq](https://forums.unrealengine.com/u/Slavq)\
**Replies:** 1\
**Last updated:** [October 17, 2019, 1:21pm UTC](https://forums.unrealengine.com/t/how-to-get-outer-angles-of-polygon/403645 "2019-10-17T13:21:15Z")

</div>

I feel that this shouldn’t be that hard, but my math side of brain just farted and turned into scrambled eggs. Here is what I’m trying to calculate: The points are connected, just like in the picture. I’d be gratefu…

---

## [AI Straight Line Charge](https://forums.unrealengine.com/t/ai-straight-line-charge/407665)

<div class="topic-metadata">

**Author:** [@RePleX49](https://forums.unrealengine.com/u/RePleX49)\
**Replies:** 3\
**Last updated:** [October 16, 2019, 11:11pm UTC](https://forums.unrealengine.com/t/ai-straight-line-charge/407665 "2019-10-16T23:11:54Z")

</div>

Hey I’m trying to make a charging enemy that will just run in a straight line charge in a player’s direction and charge will carry the enemy past the player’s location a small distance. Right now I’m trying to use AI mov…

---

## [Using AI damage sense to check nearby damage](https://forums.unrealengine.com/t/using-ai-damage-sense-to-check-nearby-damage/456987)

<div class="topic-metadata">

**Author:** [@hucancode](https://forums.unrealengine.com/u/hucancode)\
**Replies:** 0\
**Last updated:** [October 16, 2019, 4:01am UTC](https://forums.unrealengine.com/t/using-ai-damage-sense-to-check-nearby-damage/456987 "2019-10-16T04:01:54Z")

</div>

I am making an AI that respond to damage near them. If there is a fight near them, they will be triggered and join the fight. Seems that it won’t work out of the box, I see no option here in sense config. How am I suppos…

---

## [Determine if player or ai possessed pawn](https://forums.unrealengine.com/t/determine-if-player-or-ai-possessed-pawn/446541)

<div class="topic-metadata">

**Author:** [@TuXsOrDs](https://forums.unrealengine.com/u/TuXsOrDs)\
**Replies:** 3\
**Last updated:** [October 15, 2019, 10:50pm UTC](https://forums.unrealengine.com/t/determine-if-player-or-ai-possessed-pawn/446541 "2019-10-15T22:50:31Z")

</div>

I have a character that can work both as an aircraft and a player character. Fully functional behaivor tree. Would there be a way for me to check if the character is possessed by an aircraft controller or a player contr…

---

## [Dynamic Navmesh Different in Packaged than Editor](https://forums.unrealengine.com/t/dynamic-navmesh-different-in-packaged-than-editor/437822)

<div class="topic-metadata">

**Author:** [@Xilverback](https://forums.unrealengine.com/u/Xilverback)\
**Replies:** 32\
**Last updated:** [October 15, 2019, 7:10pm UTC](https://forums.unrealengine.com/t/dynamic-navmesh-different-in-packaged-than-editor/437822 "2019-10-15T19:10:37Z")

</div>

I’ve run into a new problem in 4.21. Having some serious difficulties generating navigation meshes on dynamic terrain. The biggest problem is that after some tuning things seem to work fine in the editor but when packa…

---

## [Can the viewport camera (pan & zoom speeds) adjust to the size of the object focused on?](https://forums.unrealengine.com/t/can-the-viewport-camera-pan-zoom-speeds-adjust-to-the-size-of-the-object-focused-on/310204)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_e5846b281](https://forums.unrealengine.com/u/anonymous_user_e5846b281)\
**Replies:** 2\
**Last updated:** [October 14, 2019, 7:33pm UTC](https://forums.unrealengine.com/t/can-the-viewport-camera-pan-zoom-speeds-adjust-to-the-size-of-the-object-focused-on/310204 "2019-10-14T19:33:11Z")

</div>

I come from a Maya/Unity background, and I’m wanting to make the switch over to Unreal4, but I’m finding it very frustrating how the viewport camera will only pan/zoom and a constant speed. I think it should be relative…

---

## [Box trigger not firing on object type](https://forums.unrealengine.com/t/box-trigger-not-firing-on-object-type/456827)

<div class="topic-metadata">

**Author:** [@EdBennett](https://forums.unrealengine.com/u/EdBennett)\
**Replies:** 5\
**Last updated:** [October 14, 2019, 5:21pm UTC](https://forums.unrealengine.com/t/box-trigger-not-firing-on-object-type/456827 "2019-10-14T17:21:27Z")

</div>

Hi This is something that is stumping me, I’m trying to get a box trigger to fire when the player object enters it. However it doesn’t seem to work. I end up having to do a comparison on the name which I’m sure isn’t th…

---

## [Creating a visibility meter, how do you increment a variable over time while spotted?](https://forums.unrealengine.com/t/creating-a-visibility-meter-how-do-you-increment-a-variable-over-time-while-spotted/456892)

<div class="topic-metadata">

**Author:** [@JTSmiff](https://forums.unrealengine.com/u/JTSmiff)\
**Replies:** 1\
**Last updated:** [October 14, 2019, 2:42am UTC](https://forums.unrealengine.com/t/creating-a-visibility-meter-how-do-you-increment-a-variable-over-time-while-spotted/456892 "2019-10-14T02:42:11Z")

</div>

I’m trying to implement a visibility meter for a 3rd person stealth game that increments over time while the player is visible to the AI, and once the meter is full the AI will chase the player. I’ve already implemented …

---

## [Templates or Tutorials for simple Enemy](https://forums.unrealengine.com/t/templates-or-tutorials-for-simple-enemy/132144)

<div class="topic-metadata">

**Author:** [@KekC\_CSM](https://forums.unrealengine.com/u/KekC_CSM)\
**Replies:** 0\
**Last updated:** [October 13, 2019, 1:32pm UTC](https://forums.unrealengine.com/t/templates-or-tutorials-for-simple-enemy/132144 "2019-10-13T13:32:48Z")

</div>

Need ready for use templates or tutorials for create simple Enemy with behavior tree who may: Wait for script, patrol, search player, attack, hear world or player. Also Enemy model is simple for mobile use. And animation…

---

## [Overlap event stops firing after I move my character along a spline](https://forums.unrealengine.com/t/overlap-event-stops-firing-after-i-move-my-character-along-a-spline/456828)

<div class="topic-metadata">

**Author:** [@JasperLyo](https://forums.unrealengine.com/u/JasperLyo)\
**Replies:** 0\
**Last updated:** [October 12, 2019, 9:03am UTC](https://forums.unrealengine.com/t/overlap-event-stops-firing-after-i-move-my-character-along-a-spline/456828 "2019-10-12T09:03:20Z")

</div>

I’ve got this wolf boss in my game, and his overlap event is functional at first. void AWolfTotemBase::MainColliderBeginOverlap(UPrimitiveComponent \* OverlappedComp, AActor \* OtherActor, UPrimitiveComponent \* OtherComp,…

---

## [Behavior Tree Enum Not Switching](https://forums.unrealengine.com/t/behavior-tree-enum-not-switching/456824)

<div class="topic-metadata">

**Author:** [@Overwatch04](https://forums.unrealengine.com/u/Overwatch04)\
**Replies:** 0\
**Last updated:** [October 12, 2019, 4:06am UTC](https://forums.unrealengine.com/t/behavior-tree-enum-not-switching/456824 "2019-10-12T04:06:33Z")

</div>

I am still trying to wrap my head around behavior trees. I may be going about this wrong but I cannot get my states to switch. I have Idle, Attack, and Search as states for my character. The ‘State Finder’ returns the co…

---

## [How to posses an AI Enemy?](https://forums.unrealengine.com/t/how-to-posses-an-ai-enemy/456773)

<div class="topic-metadata">

**Author:** [@PsycooGaming](https://forums.unrealengine.com/u/PsycooGaming)\
**Replies:** 2\
**Last updated:** [October 11, 2019, 7:04am UTC](https://forums.unrealengine.com/t/how-to-posses-an-ai-enemy/456773 "2019-10-11T07:04:12Z")

</div>

So I have a game where you would be able to posses enemies and use their abilities. (Similar to Mario Odyssey) Some enemies chase you and attack you, however when I do go to possessing them and then leave their body, th…

---

## [FAIStimulus::IsExpired() not working?](https://forums.unrealengine.com/t/faistimulus-isexpired-not-working/355188)

<div class="topic-metadata">

**Author:** [@Truun](https://forums.unrealengine.com/u/Truun)\
**Replies:** 19\
**Last updated:** [October 11, 2019, 3:25am UTC](https://forums.unrealengine.com/t/faistimulus-isexpired-not-working/355188 "2019-10-11T03:25:16Z")

</div>

I’m trying to retrieve an actor that has been sensed by an AIPerceptionComponen that has not expired yet. The AIPerceptionComponent is part of the AIController and the max age of the AI Sight Config has been set to 2 sec…

---

## [Behavior tree task node, delay succeeded in c++](https://forums.unrealengine.com/t/behavior-tree-task-node-delay-succeeded-in-c/456774)

<div class="topic-metadata">

**Author:** [@Cevtalo](https://forums.unrealengine.com/u/Cevtalo)\
**Replies:** 1\
**Last updated:** [October 11, 2019, 1:56am UTC](https://forums.unrealengine.com/t/behavior-tree-task-node-delay-succeeded-in-c/456774 "2019-10-11T01:56:26Z")

</div>

Is there a way to delay the EBTNodeResult, with a float value, in c++? Similar to this:

---

## [BT Task Move To missing exposed EditCondition variable](https://forums.unrealengine.com/t/bt-task-move-to-missing-exposed-editcondition-variable/456691)

<div class="topic-metadata">

**Author:** [@intoxicat3](https://forums.unrealengine.com/u/intoxicat3)\
**Replies:** 1\
**Last updated:** [October 10, 2019, 6:49pm UTC](https://forums.unrealengine.com/t/bt-task-move-to-missing-exposed-editcondition-variable/456691 "2019-10-10T18:49:50Z")

</div>

This says all. Would be nice if someone can add there EditDefaultsOnly so we would be able to actually change ValueTolerance.

---

## [How do I make the AI choose another attack if it picks an attack already on Cooldown](https://forums.unrealengine.com/t/how-do-i-make-the-ai-choose-another-attack-if-it-picks-an-attack-already-on-cooldown/445934)

<div class="topic-metadata">

**Author:** [@Slazy101](https://forums.unrealengine.com/u/Slazy101)\
**Replies:** 5\
**Last updated:** [October 10, 2019, 6:19pm UTC](https://forums.unrealengine.com/t/how-do-i-make-the-ai-choose-another-attack-if-it-picks-an-attack-already-on-cooldown/445934 "2019-10-10T18:19:54Z")

</div>

Hello I am having an issue with my AI’s behaviours. When he gets to a mid range of the player, he will choose between 6 different behaviours at random as seen below. From left to right its: DodgeLeft, DodgeRight, DodgeF…

---

## [Red and green faces upon AI character](https://forums.unrealengine.com/t/red-and-green-faces-upon-ai-character/417770)

<div class="topic-metadata">

**Author:** [@Robson1](https://forums.unrealengine.com/u/Robson1)\
**Replies:** 1\
**Last updated:** [October 5, 2019, 10:35pm UTC](https://forums.unrealengine.com/t/red-and-green-faces-upon-ai-character/417770 "2019-10-05T22:35:07Z")

</div>

What do this red devil and green faces upon AI character mean?

---

## [How to Repossesee by AI](https://forums.unrealengine.com/t/how-to-repossesee-by-ai/456349)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_f5a963a6](https://forums.unrealengine.com/u/anonymous_user_f5a963a6)\
**Replies:** 5\
**Last updated:** [October 5, 2019, 4:54am UTC](https://forums.unrealengine.com/t/how-to-repossesee-by-ai/456349 "2019-10-05T04:54:58Z")

</div>

I’m working on a character switching gameplay player can switch between two character Player well control one character and another character should work as a follower and player can switch between this two character B…

---

## [AI Don't Move Correctly](https://forums.unrealengine.com/t/ai-dont-move-correctly/456381)

<div class="topic-metadata">

**Author:** [@Serlin](https://forums.unrealengine.com/u/Serlin)\
**Replies:** 0\
**Last updated:** [October 3, 2019, 5:25pm UTC](https://forums.unrealengine.com/t/ai-dont-move-correctly/456381 "2019-10-03T17:25:20Z")

</div>

Hi, I’m making a simple ai minion that follow when it find you and the rest of the time is wandering, but some minions although the target location is inside the nav mesh move until they are outside of the navmesh. The …

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

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