I have a door system in my game, it’s on a hinge and you walk into it to open… It’s all working great but now I want to add some that are locked and here’s how I figure it can be done, just need help putting the script together… So I have frozen the position and rotation on some doors and I need to know how to turn them off once I pick up the key, I understand it has to go something like on the key there is a trigger and when you stay inside you can press the E key to pick up the key, it will destroy the key object, tell you that you picked it up and then unlock the constraints on the door. Would be a big help if someone could put this together for me. Thanks in advance.
Hi toth90,
I don’t think anyone will script your game for you. you will have to learn how to do this and then be able to employ it yourself.
Here’s A tutorial:
There are a lot of tutorials for this kind of thing, especially because it’s sort of simple(depending!).
Here’s a link to a scripting reference you might use based on how you want to approach it.
Good luck!