I am trying to create a five nights at freddys fan game, but I am trying to make the gane to know when i am looking forward, left, and etc. Now my second option is to make a button where I click with the mouse, and then the door can close and open. It is a third person template, and if you can help me, I would be gratefull.
Thank you
You may need to explain this.
Look into interface communication - a common method of interacting with world items. Perfect for opening, inspecting, using & interacting with stuff.