One button multiple doors + Created 16 years ago2007-06-27 04:24:50 UTC by username username

Created 16 years ago2007-06-27 04:24:50 UTC by username username

Posted 16 years ago2007-06-27 04:24:50 UTC Post #226551
Is there a way to make one button affect multiple doors? The first door will be opened or closed by the toggle of the button. The second door or doors will only close if already open, never opened. The doors all have different names.

I have gotten one button to open multiple doors with a multi_manager but have not been able to ensure some of those doors will only close by that particular button. I have also gotten this to work entirely using multiple doors for each doorway so the close only doorways remain blocked from certain buttons. But I would like to eliminate some entities.

The Exact Case:

Toggle Buttons 1-4 and doorways 1-5. Doorway 5 is open by default. Door 5 is only open if all buttons are off. There is only one doorway open at any time. This doorway corresponds to the lowest numbered button that is on.

So if a player presses button 1 and 3, only doorway 1 is open. If button 2, 3 and 4 are on/pressed only doorway 2 is open. I would like to accomplish this with the least number of entities total.

Thank you for your time I know this is a lengthy post and a complicated request.
-User
Posted 16 years ago2007-06-27 05:08:29 UTC Post #226555
oh.. hrmm.

Try using a trigger_relay to fix it up.

http://twhl.co.za/entityinfo.php?ent=trigger_relay&game=1

You need to set the multi-manager to trigger that, and then make that target the door. You have to test and figure out if your closed/open door is on or off.

Example.. You figure out that your open door is the 'on' selection of the "trigger state" field of the trigger_relay. So.. when you trigger the trigger_relay and the door is open, it will proceed to close it, otherwise it will go un-affected. (remember: figure out if the open door is 'on' or 'off')

So.. you figure that entity out (I know thats the one you need).. and use it where needed.

thats a wierd one to explain :x
TheGrimReafer TheGrimReaferADMININATOR
You must be logged in to post a response.