So I've designed a door lock. Basically it's a door with a green light that indicates if it's openable/closeable and a button next to it.
When the green light is lit (Pic 1), the door will open when you press the button (planning on making that button the only "public" object in the ship). But if one presses a button in the inside of the ship, the green light will turn off (pic 2) and pressing the button will no longer open the door again (pic 3).
IMPORTANT NOTE: I've used NOT Gates because I like that an activated button symbolises an activated security system and that a lighted button indicates an open door. This can be perfectly done without NOT Gates.
Pic 1
Pic 2
Pic 3
How it's done (I've forgot to add the light to the screenshot, you need to connect the NOT Gate under the 'On/Off Security' Button to the light):
When the green light is lit (Pic 1), the door will open when you press the button (planning on making that button the only "public" object in the ship). But if one presses a button in the inside of the ship, the green light will turn off (pic 2) and pressing the button will no longer open the door again (pic 3).
IMPORTANT NOTE: I've used NOT Gates because I like that an activated button symbolises an activated security system and that a lighted button indicates an open door. This can be perfectly done without NOT Gates.
Pic 1
Pic 2
Pic 3
How it's done (I've forgot to add the light to the screenshot, you need to connect the NOT Gate under the 'On/Off Security' Button to the light):