Jump to content

Four-Digit Code Lock 1.0.0

   (0 reviews)

5 Screenshots

  • 150
  • 15
  • 663.83 kB

About Four-Digit Code Lock

Four-Digit Code Lock introduces a simple and intuitive way to open doors in your custom monuments — by entering a four-digit PIN. It's up to you to decide how players will obtain the code: hidden hints, puzzles, an "egg hunt" for digits, etc. This system unlocks a wide range of new gameplay possibilities for map creators, from intricate escape rooms to high-stakes loot vaults. The prefab is constructed from in-game electrical components, and you can reprogram it to any four-digit code (the default code is "4321").

Once the correct numbers are entered, the door will open for 5 seconds before closing again. The lock will then reset. Buttons have a 2-second delay. An exit switch is also provided, along with a reset button on the side to clear the input.

The display counters at the front cycle through digits from 0 to 9. Each digit of the code is controlled by two counters: the "code-digit" (top) and "code-digit +1" (bottom). The top counter’s output passes through a blocker, while the bottom counter’s output connects to the block port of the blocker, ensuring only the correct number is accepted.

If you want to include "0" in your code, connect the IO output from the generator directly to the corresponding blocker, bypassing the top counter (since in-game counters cannot be set to zero). Set the blocking counter (bottom one) to "1" instead.

Two versions of the prefab are provided: a fully assembled version and a dismantled version for usability and customization (with all logical links preserved). The assembled prefab includes 65 objects, while the dismantled version includes 52 objects.


 Installation:

1. Download the archive

2. Unpack the downloaded archive to the /RustEdit/CustomPrefabs folder

3. To ensure proper in-game functionality, make sure Oxide.Ext.RustEdit.dll is placed in the /serverroot/RustDedicated_Data/Managed folder, so custom electricity can work (see details at https://www.rustedit.io/threads/rustedit-oxide-umod-extension.695/). This extension requires Oxide/uMod to be installed on your server.

  • Confused 1
  • Love 2

Uncle Theodore's Collection

User Feedback

1.6m

Downloads

Total number of downloads.

7.6k

Customers

Total customers served.

114.3k

Files Sold

Total number of files sold.

2.3m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.