|
Post by dumdadumdoo on Mar 29, 2010 19:36:52 GMT
How do you make a light (i dont care what kind, just any kind of light u can see) start up once a button is pressed? I cant find an option or flag that is like "start off..."?
|
|
|
Post by Zeph on Mar 29, 2010 21:05:02 GMT
light_dynamic, give it a name and the flag "initially dark", then for your button: OnPressed -> "lightname" -> TurnOn
|
|
|
Post by antonio12332 on Mar 29, 2010 21:16:53 GMT
Do you mean kind of like a light switch?
If so, then select the entity tool on the left side, and click somewhere in the map, double click on it and change its name to "light" and press accept. Then it should have an icon that looks like a light bulb that shows up in its place.
Change its name to something like "light_1", and have a button called "light_1_button" or something. Then go to the outputs of the button, and change the first box to "on pressed", and in the second, put "light_1", and in the third, "turn on"
For the second button, do everything in the paragraph above, except for the third one, put "turn off"
I haven't found a different way to do this, the toggle option hasn't worked for be before, then again I'm pretty horrible at lighting..
|
|
|
Post by dumdadumdoo on Mar 29, 2010 21:29:18 GMT
Can you do this with any type of light? I see that on flags too o.o
|
|
|
Post by antonio12332 on Mar 29, 2010 21:38:31 GMT
There's a ton of different lights you can use, "light" is just a basic orb of light. watch 3kliks lighting example here
|
|
|
Post by Zeph on Mar 29, 2010 23:40:22 GMT
You can use any type of light: Light, Light_Dynamic, Light_Spot, etc.
However -> when you name a light (of any type) it forces it to be DYNAMIC (even if it wasn't before). You can have a maximum of FOUR dynamic lights shining on a single brush face. Lights with the same name are considered a single dynamic light.
Keep named lights to a minimum, share the same names when possible (ie call a whole room's lights as a single name, to all be controlled by one switch, etc). Do not name a light you don't 'control'.
"toggle" may be better than "turn on" and "turn off", so long as they all start in the same initial state.
|
|
|
Post by dumdadumdoo on Mar 30, 2010 1:46:37 GMT
Yeah, im trying to make like a race track where when you press a button at the end a light above you lights up, with several "lanes". If youve ever played jailbreak before, it would be like for telling who was first/last.
|
|
|
Post by Zeph on Mar 30, 2010 8:08:43 GMT
So you want to turn it on and leave it on then, and disable the rest.
I would then have each button "turn on" their own light, and all buttons "trigger" one logic_relay. The logic_relay then "on trigger" disables all buttons (including the winners).
If you call the buttons "button_1", etc, you can "disable -> button*" use a wildcard (*) to deal with them all.
That's the easiest way to do it.
|
|