Light Switches Created 16 years ago2007-11-26 01:14:03 UTC by qwerty123 qwerty123

Created 16 years ago2007-11-26 01:14:03 UTC by qwerty123 qwerty123

Posted 16 years ago2007-11-26 01:14:03 UTC Post #239177
I have made a map for cs with about 5 lights and each with an individual func_button to act as switches.

Now, I want to make 1 main button to switch everything on and off. The button acts as a power supply button.
When on, the individual buttons can have the option to switch on or off.
When off, the individual buttons can't do anything.

How can i accomplish that?
Posted 16 years ago2007-11-26 07:29:31 UTC Post #239184
Try targeting the main func_buton to a multi_manager. Then the multi_manager activates all the other buttons.
Posted 16 years ago2007-11-26 07:32:13 UTC Post #239185
Flag "toggle" on the button.
Set the targetname (name) of the button to power_button_main.
Set the master of the lights to power_button_main.
EDIT: Don't do what SPIKE writes, it won't block the other buttons.
Oskar Potatis Oskar Potatis🦔
Posted 16 years ago2007-11-27 04:14:34 UTC Post #239264
Thanks but it stilll doesnt work. Can someone else please help me?
Posted 16 years ago2007-11-27 04:30:54 UTC Post #239266
you know what u might do (if your map wouldnt suffer) would be to cover the light switches with some sort of security panel. with a main button power to control the panel. once activated the panel scrolls up so you can then press the buttons and activate the lights.

not really what u wanted i know....
Posted 16 years ago2007-11-29 08:38:19 UTC Post #239392
Hey! that's actually a great idea! But how to make the scrolls? This might end my long search!
Posted 16 years ago2007-11-29 11:58:19 UTC Post #239400
Now, I want to make 1 main button to switch everything on and off. The button acts as a power supply button.
When on, the individual buttons can have the option to switch on or off.
When off, the individual buttons can't do anything.
You're in luck, because i have an exact same kind of setup in one of my maps. I can put the entire entity setup in an empty room so you can have a look at it.

Should i?
Posted 16 years ago2007-11-29 12:40:39 UTC Post #239401
Yes. Can i have a look at it pls?
Posted 16 years ago2007-11-29 13:21:12 UTC Post #239402
Working on it.
Edit:

http://www.themightyatom.nl/stuff/buttons.rmf

In this example, all four buttons are disabled. Using them won't do anything. When you use the main power button, the fout buttons are enabled and can be used to turn the lights (in my example small on/off indicators) on and off. When the main power button is used again, the four buttons can only turn the lights off, not on, until the main power button is on again.
Posted 16 years ago2007-11-29 15:58:07 UTC Post #239408
This is a very interesting example.Please tell me what i the meaning of that multi_source in there , cause I found no target ( ?!).
And secondly: if you trigger a func_wall with a button texture it'll change the texture ?
Striker StrikerI forgot to check the oil pressure
Posted 16 years ago2007-11-29 18:03:38 UTC Post #239424
Please tell me what i the meaning of that multi_source in there , cause I found no target ( ?!).
The multisource acts as somekind of uhm... lock. When its triggered, the small buttons which have the name of the multisource in the master property are enabled, allowing you to usekey them.
And secondly: if you trigger a func_wall with a button texture it'll change the texture ?
You got that right. Only has effect on toggleable textures (+A +0) textures.
Posted 16 years ago2007-11-30 09:13:05 UTC Post #239477
Ok thanks :heart:
And in romanian : Multumesc foarte mult ! ( :D )
Striker StrikerI forgot to check the oil pressure
Posted 16 years ago2007-11-30 13:22:41 UTC Post #239482
salut! :> :glad:
Posted 16 years ago2007-12-02 10:02:35 UTC Post #239630
Thanks!
You must be logged in to post a response.