Hello, I am working on a survival horror game and at one point you get to a room where you fight the first boss and the door closes behind you. The problem is, I have found scripts to get a door to close behind you, but how would I make a script that has the door close behind you and lock itself so you cannot escape?
The door then needs to unlock itself once the boss has been killed.
I hope someone could provide me a script for this or give me instruction on how to make one.
Thank you.
We give so much, yet we are given so little.