Buttons that activate other buttons. Created 16 years ago2008-01-20 01:31:26 UTC by CactusJack CactusJack

Created 16 years ago2008-01-20 01:31:26 UTC by CactusJack CactusJack

Posted 16 years ago2008-01-20 01:31:26 UTC Post #243868
Hi, so I was wondering if there was a way to have a button activate another button. Like lets say I have a door. To use this door you have to press the GREEN button. But you can't use the GREEN button until you hit the YELLOW one. So to open the door you must hit yellow then green.

Is there any way to achieve this?
Posted 16 years ago2008-01-20 01:39:51 UTC Post #243869
AJ AJGlorious Overlord
Posted 16 years ago2008-01-20 01:42:06 UTC Post #243870
this looks like exactly what i need, ty for fast response

Edit ya that kind of confused me. So i have two buttons both have targetedobject as multisource , multisource is targetting my door and my door has multisource as its Master.

When I hit both buttons it doesn't open. Would i have to hit them at the Exact same time, or do I just need the other two entities from the link provided by Ant?
Posted 16 years ago2008-01-20 04:42:38 UTC Post #243877
Well if the multisource is the doors master, that just tells the door that it can't open unless the multisource is active. Therefore requiring the door to need another trigger to open it (i think)

Try just having the multisource trigger the door to open,
OR

Place a trigger_multiple around the door with the trigger's master as the multisource, and take the master off the door itself.

Have the trigger_multiple trigger the door when it's master is active.

There are multiple ways of doing this. Find the one that works best for you, and that best suits the situation you're in.
Tetsu0 Tetsu0Positive Chaos
Posted 16 years ago2008-01-20 22:40:24 UTC Post #243921
Ty for tips.

So I have 3 buttons all targetting a multisource. The Multisource is targetting a door and the door has the multisource as its master. When i press all 3 the door doesn't open, could you please tell me why if you think you know.
Posted 16 years ago2008-01-21 00:49:28 UTC Post #243928
place a trigger_multiple in the area around the door triggering the door.
The trigger will always be active, but the door won't open until it's master (multisource) is active.
Tetsu0 Tetsu0Positive Chaos
Posted 16 years ago2008-01-21 03:04:47 UTC Post #243935
I did that, now the door opens when i walk at it whether i hit the buttons or not. I think my multisource is always on or something, but i dont see any off flags? That's the only problem i can see. Is there a way to have a multisource off?
Posted 16 years ago2008-01-21 13:25:12 UTC Post #243977
Personally, I prefer trigger_changetargets to multisources. Much easier to use.

All you need is one trigger_changetarget for a sequence like yours to work. Here's how:

YELLOW button:
Target: enablegreen

GREEN button:
Name: green_btn
Target: none

Trigger_changetarget
Name: enablegreen
Target: green_btn
New Target: door

func_door
Name: door

As you see, initially the GREEN button doesn't have a target, so there's no way of opening the door. However, once the YELLOW button's pressed - your trigger_changetarget sets the GREEN button target to the door, so pressing the button then will open it.
Daubster DaubsterVault Dweller
Posted 16 years ago2008-01-21 23:12:19 UTC Post #244000
Thanks, this worked great. I was even able to throw another button into the mix.Thanks to everyone who helped :D

p.s I don't know how these forums are modded so just incase, please dont delete this thread as I may need it again soon.
Posted 16 years ago2008-01-22 02:06:31 UTC Post #244010
They're usually not closed unless Pengi comes with his truck of fail, or strider and/or daub deems the creator incredibly stupid.
Which you are not.
So i do not believe this thread is in danger of being closed.

Sorry that my tips didn't work out, and daub, thank you also for a better way of doing this.
Tetsu0 Tetsu0Positive Chaos
Posted 16 years ago2008-01-22 18:14:23 UTC Post #244075
Actually Tetsu0 you were a big help. Trying your methods helped me gain an understanding of Daubster's method, so thanks!
You must be logged in to post a response.