UE4 AI how to teach how to open doors?

There is a game where the bot runs after the player (constantly). I would like to make doors, but if I make doors, the question immediately arises, how to make the bot open them... After all, the bot, when I enter the room and close the door, does not stand at the door, but goes somewhere. I had an idea to calculate the room in the player, where he is, but I think this method is not the best... Could you suggest a better way? The bot is written in behavier tree. And I'm new to AI, so in general I have no idea how to do this better.

P.S. I'm not asking for the code itself(although it would not be bad if you threw it off), I'm asking at least for the algorithm itself, how to implement it

Author: Lofectr, 2020-04-16

1 answers

You can use the trigger - when the bot enters - the door opens, when it exits-it closes you can use linetrace to check the path of the bot, and if a door appears on the way, then open it at a certain distance

 -1
Author: Saddy, 2020-04-28 19:44:52