How to detect actors blocking AI navigation or movement?

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?

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

Did you figure out something good?