How can I make a door open depending on the way I am facing?

Recently, I have been trying to figure out how I can make a door open depending on what side the player is on. I have tried a hand full of sources to figure this out and I haven’t managed to find anything to help/guide me, so this is kind of my last resort. :frowning:

I am also pretty new to scripting, so any guidance and help will be appreciated :smiley:

There are already existing resources on this but you can use dot product to get if the player is behind or in front of the door.

1 Like