About this mod
Allows numerical locks to be added to the game with custom passcodes, featuring a custom UI.
- Requirements
- Permissions and credits
- Donations
This resource allows for custom keypads to be created as locks and the like. It features a custom UI that fakes a MenuMode and presents the player with an overlay that mimics the minigame style from the base game. The keypad can be controlled with either the Numpad, regular keyboard numbers row or by clicking with the mouse (No controller support unfortunately).
Default binds for Clear is "BACKSPACE" or "Numpad ," and Exit is "ENTER" or "Numpad ENTER".
To create a new lock you need to call the KeypadDisplayUDF function with a custom id for that keypad.
You also need to set the passcode for the keypad by calling KeypadSetCodeUDF with 4 digits.
There is an example script for a button included in the esp that looks like the one below.
scn KeypadTestSwitchScript
begin OnActivate
call KeypadDisplayUDF 0001
call KeypadSetCodeUDF 0 0 0 1
end
To check if the keypad code was entered correctly, you need to check if it's unlocked and if the current id is correct
if KeypadQuest.unlocked == 1 && KeypadQuest.id == 0001
(result code, ex MyREF.Unlock)
endif
If there are any features you would like adding, just let me know :)
Known Bugs:
Might look wrong with texture settings lower than High. - Potentially Fixed
Credits:
Kungkobra for requesting me to make this and for making the textures/model.
jazzisparis and LuthienAnarion for Jip-Ln