How to make an ai know which door the player went through

What do you mean by GameMode? I don’t think I have one in my project