How do you make a door open and close with 'e'? (C#) And does NOT close on it's own. (C#)
Most people like there doors to swing open with an animation, but I want mine to simply go to the open position with out a moving effect. I would like it to just BE OPEN when 'e' is pressed and the mouse is on the door. I use C#.
Answer by TCMOREIRA · Apr 07, 2020 at 12:39 AM
How about having two objects? One representing the closed-door and another representing the open-door. Then simply toggle between them (activate one, deactivate the other) whenever the desired event happens.
Not the most elegant solution but it should work.
That is a really good idea. The only problem is I just barely tarted coding and I would need a direct script. But thanks for the great suggestion!
Your answer
Follow this Question
Related Questions
Click/Drag/Zoom/Rotate/Throw Rigidbody Like Amnesia C# 0 Answers
horror game project 0 Answers
Flashlight battery 1 Answer
Horror game project. 0 Answers
Horror AI looks for player 0 Answers