# How to detect actors blocking AI navigation or movement?

**URL:** <https://forums.unrealengine.com/t/how-to-detect-actors-blocking-ai-navigation-or-movement/432052>\
**Category:** AI\
**Tags:** ai-navigation, pathfinding, Navigation, unreal-engine, question\
**Created:** [August 20, 2018, 6:10pm UTC](https://forums.unrealengine.com/t/how-to-detect-actors-blocking-ai-navigation-or-movement/432052 "2018-08-20T18:10:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_8c806efd1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8c806efd1](https://forums.unrealengine.com/u/anonymous_user_8c806efd1)\
**Post date:** [August 20, 2018, 6:10pm UTC](https://forums.unrealengine.com/t/how-to-detect-actors-blocking-ai-navigation-or-movement/432052/1 "2018-08-20T18:10:53Z")

</div>

I’ve got an AI setup using behaviour trees. I have the AI move to location and open doors when they overlap the door interaction range but this means every door they touch opens. I want the AI to only open doors if they are in the way. I think the best way to do this is to detect that the door is blocking the AI, set the blocking door as a blackboard key, and then have the AI open the door. Or if there is a way to do a line trace of the AIs path, I could get a reference to the blocking door.

So ideally a node called “Detect Actors Blocking Path” would be good, but there isn’t one, so how would I get the AIs path and detect an actor in the way?

---

<div class="post-metadata">

**Author:** ![KineticVP1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kineticvp1/32/687873_2.png) [@KineticVP1](https://forums.unrealengine.com/u/KineticVP1)\
**Post date:** [July 7, 2023, 3:00am UTC](https://forums.unrealengine.com/t/how-to-detect-actors-blocking-ai-navigation-or-movement/432052/2 "2023-07-07T03:00:23Z")

</div>

I’m dealing with the exact issue myself. If I figure something out I’ll post here.

---

<div class="post-metadata">

**Author:** ![westomopresto](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/westomopresto/32/739242_2.png) [@westomopresto](https://forums.unrealengine.com/u/westomopresto)\
**Post date:** [February 4, 2024, 4:34am UTC](https://forums.unrealengine.com/t/how-to-detect-actors-blocking-ai-navigation-or-movement/432052/3 "2024-02-04T04:34:07Z")

</div>

Did you figure out something good?
