- Home /
How to code a one way door
I want to code a door that can only be accessed from one side? And I don't know very much Javascript code as I'm new to it all. Any help guys? You're all amazing I'm sure somebody knows how to do it
Answer by Bunny83 · Dec 05, 2012 at 01:27 AM
This has more to do with your architectural design of your door as with any code. What kind of door do you have (sliding, rotating, ...)? How should it be opened? How should it be closed? Ask detailed questions. It's really not clear what exactly you want.
The usual way to detect if th player is in front of a door / object / ... is to use a trigger. There are tons of tutorials out there.
Your answer
Follow this Question
Related Questions
How i make this code in Unity Javascript 2 Answers
How can i make the ray cast don't go through the walls 1 Answer
Moving on Axis 1 Answer
OnMouseEnter Error 1 Answer
How to make the CC(character controller) jump and push 1 Answer