This script when applied to key locked doors, will allow for the player to have the ability to pick lock the door open without the use of a key. But still allow for the player to open it if he happens to have appropriate key.
The player must hold E to successfully pick the lock open. When the pick locking process reaches 100% the door will then be unlocked and a key will no longer be required. If the player fails to hold E for the whole duration the pick lock process will fail. Additionally if the player moves the pick locking process may fail.
How to use:
- Apply this script to any door entity
- In the Editor right click on the door and where it says "Use Key" put the name of a key on your map or just write "locked"