I'm trying to make a door that closes when you open the other

ok, so I’m trying to make it to were when you open a door, the other closes, Wich happens for both doors, and to were you can also JUST open the doors by them selves,
but another silution is making it to were you have to manage having the doors open, like it removes a thing when they are open, like power or something
TL;DR, I am making a FNAF map, and I’m trying to make it to were you cant just keep doors closed

1 Like

im using barrers, this is my settup
Screenshot 2024-05-07 3.27.39 PM.png…

use 2 counters. if door closed for both then increment counter. if a door is closed decrement the counter for that door. target value is 1 for both counters. when one of them reaches target value it opens the other door. do that for both sides.

1 Like

Its really simple, have a button at each door, when a button gets pushed, it opens the closest door to it and closes the other door.

1 Like

then you might as well have one button. remember he still wants both doors to be able to be left open

1 Like

2 barriers (the doors)
4 buttons (they open/and close the 2 doors)
4 wire repeaters (we just need these)

alright:

button 1, (opens door 1):
interface message: open
deactivation scope: Global
Visible in-game: NO

button 2, (closes door1)
interface message: close
deactivation scope: Global
Visible in-game: NO

button 3, (opens door 2):
interface message: open
deactivation scope: Global
Visible in-game: NO

button 4, (closes door2)
interface message: close
deactivation scope: Global
Visible in-game: NO

Barrier 1 (door 1):
color: (whatever you want, I suggest brown(wood))
deactivation scope: Global
Activate on game start: yes

Barrier 2 (door 2):
color: (whatever you want, I suggest brown(wood))
deactivation scope: Global
Activate on game start: no

wire repeaters:
all of them are set to 0.0 delay

INTENSE WIRING
button 1, wire repeater 1: button pressed —> send wire pulse
button 1, button 3: button pressed —> activate button
button 1, button 4: button pressed —> deactivate button
wire repeater 1, button 1: received wire pulse —> deactivate button
wire repeater 1, barrier 1: received wire pulse —> deactivate barrier
wire repeater 1, barrier 2: received wire pulse —> activate barrier
wire repeater 1, button 2: received wire pulse —> activate button

button 2, wire repeater 2: button pressed —> send wire pulse
button 2, button 3: button pressed —> activate button
button 2, button 4: button pressed —> deactivate button
wire repeater 2, button 2: received wire pulse —> deactivate button
wire repeater 2, barrier 2: received wire pulse —> deactivate barrier
wire repeater 2, barrier 1: received wire pulse —> activate barrier
wire repeater 2, button 1: received wire pulse —> activate button

button 3, wire repeater 3: button pressed —> send wire pulse
button 3, button 2: button pressed —> activate button
button 3 button 1: button pressed —> deactivate button
wire repeater 3, button 3: received wire pulse —> deactivate button
wire repeater 3, barrier 2: received wire pulse —> deactivate barrier
wire repeater 3, barrier 1: received wire pulse —> activate barrier
wire repeater 3, button 4: received wire pulse —> activate button

button 4, wire repeater 4: button pressed —> send wire pulse
button 4, button 2: button pressed —> activate button
button 4 button 1: button pressed —> deactivate button
wire repeater 4, button 4: received wire pulse —> deactivate button
wire repeater 4, barrier 1: received wire pulse —> deactivate barrier
wire repeater 4, barrier 2: received wire pulse —> activate barrier
wire repeater 4, button 3: received wire pulse —> activate button

now there is another way that uses channels and triggers, but that is also complicated… ping me if you want to use that way

1 Like