Inspiration

I wanted to create a good Door system, a lot of the current ones were lacking. And I had already made a basic one for Mr Packard's Mansion (my previous contest entry) that I could re-do and expand on.

What it does

The system contains three scripts. Two main scripts and a help UI:

  • DoorMaster: This server-side script controls the door itself. Put it on a TriggerGizmo activated either by players or a tagged object. You can control how long it opens for, if it auto-closes, the key required, and more.
  • KeyMaster: This client-side script controls the keys. Place on any Grabbable object to turn it into a key capable of opening a DoorMaster script. Whether it's a key in a lock, or a book in a bookshelf, you can make it open.
  • HelpUI: There's a built-in help UI with the prefab that explains all of the features. This can be safely deleted when you feel comfortable with the tech.

How we built it

It was fairly straightforward as I built my TypeScript knowledge creating my remixable world entry.

Challenges we ran into

Not having access to the Desktop Editor for 24 hours before the end of the competition surely didn't help. There were a few more customizable options I wanted to add that I simply ran out of time for. But I'm very happy with the solidity of the system.

I ended up having to submit this asset from my secondary account since I did not have access to the editor on the primary account, hopefully that isn't an issue. I did my best to resolve the issue, but support stopped responding to me.

Accomplishments that we're proud of

Again, I'm proud of how solid the system is and I think it will be useful to many people.

What's next for Door & Key System By Thoth

I'd like to add a keypad that controls doors, network events for them, and a few other small customizable options. Maybe a few more examples in the prefab, as well. But there are already public functions to open the doors so it's possible as-is.

Built With

Share this project:

Updates