Frequently Asked Forum Questions | ||||
Search Older Posts on This Forum: Posts on Current Forum | Archived Posts | ||||
: If you're looking to open/close multiple doors with a single switch, just use
: a toggle switch (note: not toggle once), and set the broadcast channel for
: the switch and all the doors you want to be controlled by the switch to
: the same channel. So, if you switch is channel 2, set all your doors you
: want controlled by that switch to channel 2.
: If what you meant is that you have 2 doors, and you want the switch to always
: open one and close the other simultaneously... My best guess would be to
: have one "door" (or a block or whatever you're using) spawn at
: the start of the game. Have the other set to *not* spawn at the start
: (Advanced > Place at Start > False). Make sure both are able to
: despawn (Scripting > Can Despawn > True). Set the spawn channel to
: the same value for both of them. Set a toggle switch to the same channel.
: This way, when you toggle the switch, the "door" that spawned at
: the start of the game will despawn, and the "door" that did not
: spawn initially will spawn. Once you toggle the switch again, the opposite
: will happen, and you will once again have the initial spawn door and the
: other will be gone.
Sorry, to clarify for that last set of instructions: you would use the spawn channel for the "doors" as you are controlling their spawns, and the switch would be the broadcast channel still. It's really funky how it works, but an item will only broadcast a signal/state on its "broadcast" channel, but it can still be manipulated by any change in signal/state on its spawn channel, power channel, or broadcast channel.
And, of course, if people are in close proximity to a despawned door, it may not spawn when it's supposed to.