# AI SetFocus not working correctly?

**URL:** <https://forums.unrealengine.com/t/ai-setfocus-not-working-correctly/147068>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [July 6, 2020, 6:38pm UTC](https://forums.unrealengine.com/t/ai-setfocus-not-working-correctly/147068 "2020-07-06T18:38:05Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brandinooooo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Brandinooooo](https://forums.unrealengine.com/u/Brandinooooo)\
**Post date:** [July 6, 2020, 6:38pm UTC](https://forums.unrealengine.com/t/ai-setfocus-not-working-correctly/147068/1 "2020-07-06T18:38:05Z")

</div>

I’m trying to get my AI to move while still looking at the player after it attacks. Multiple people recommended the SetFocus node but it didn’t help. I put the Set Focus node with my AI connected (this is in Behavior Trees) then had a reference to my Player as the target. SetFocus execute to SimpleMove. It still just turns around and runs. What am I missing here?

---

<div class="post-metadata">

**Author:** ![Indorile](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Indorile](https://forums.unrealengine.com/u/Indorile)\
**Post date:** [July 7, 2020, 4:52pm UTC](https://forums.unrealengine.com/t/ai-setfocus-not-working-correctly/147068/2 "2020-07-07T16:52:40Z")

</div>

Have you unticked UseControllerRotationYaw from the pawn and ticked UseControllerDesiredRotation in CharacterMovementComponent?

---

<div class="post-metadata">

**Author:** ![RaneMirna](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ranemirna/32/903532_2.png) [@RaneMirna](https://forums.unrealengine.com/u/RaneMirna)\
**Post date:** [January 20, 2022, 7:30pm UTC](https://forums.unrealengine.com/t/ai-setfocus-not-working-correctly/147068/3 "2022-01-20T19:30:44Z")

</div>

I Just want to to know, that this your answer helped me - 1 & 1/2 after you posted it- too. Thanks!

---

<div class="post-metadata">

**Author:** ![AngrySkull](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AngrySkull](https://forums.unrealengine.com/u/AngrySkull)\
**Post date:** [January 2, 2023, 6:05am UTC](https://forums.unrealengine.com/t/ai-setfocus-not-working-correctly/147068/4 "2023-01-02T06:05:35Z")

</div>

Same here.

---

<div class="post-metadata">

**Author:** ![thierrymlb1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@thierrymlb1](https://forums.unrealengine.com/u/thierrymlb1)\
**Post date:** [February 9, 2023, 5:56pm UTC](https://forums.unrealengine.com/t/ai-setfocus-not-working-correctly/147068/5 "2023-02-09T17:56:54Z")

</div>

ClearFocus wasn’t working for me and this fixed it. Thank you.

---

<div class="post-metadata">

**Author:** ![Lowenfas](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lowenfas](https://forums.unrealengine.com/u/Lowenfas)\
**Post date:** [June 28, 2023, 7:09pm UTC](https://forums.unrealengine.com/t/ai-setfocus-not-working-correctly/147068/6 "2023-06-28T19:09:46Z")

</div>

So what if both of those boxes are already tick/unticked as you say but the AI still isn’t turning?

---

<div class="post-metadata">

**Author:** ![kretoskar123](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kretoskar123](https://forums.unrealengine.com/u/kretoskar123)\
**Post date:** [July 9, 2023, 8:12pm UTC](https://forums.unrealengine.com/t/ai-setfocus-not-working-correctly/147068/7 "2023-07-09T20:12:58Z")

</div>

also make sure “Orient Rotation to Movement” is unchecked

---

<div class="post-metadata">

**Author:** ![Monst00](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Monst00](https://forums.unrealengine.com/u/Monst00)\
**Post date:** [January 30, 2024, 11:19pm UTC](https://forums.unrealengine.com/t/ai-setfocus-not-working-correctly/147068/8 "2024-01-30T23:19:46Z")

</div>

If you’re still having issues consider that the AI Controller might be the problem. In my case I made a Custom AiController (C++), but I disabled bCanEverTick which is needed for setfocus to function properly, as soon as I unchecked it, it worked! In BP I think it’s called ‘Start with Tick Enabled’ within your AiController.

---

<div class="post-metadata">

**Author:** ![PeterW\_art](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PeterW\_art](https://forums.unrealengine.com/u/PeterW_art)\
**Post date:** [October 21, 2025, 5:07pm UTC](https://forums.unrealengine.com/t/ai-setfocus-not-working-correctly/147068/9 "2025-10-21T17:07:29Z")

</div>

Turning the tick on in the AI controller fixed the issue for me.

---

<div class="post-metadata">

**Author:** ![zbonee](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@zbonee](https://forums.unrealengine.com/u/zbonee)\
**Post date:** [April 4, 2026, 5:41pm UTC](https://forums.unrealengine.com/t/ai-setfocus-not-working-correctly/147068/10 "2026-04-04T17:41:21Z")

</div>

Sort of late, but this worked for me, Thanks a lot!
