Button with random outcome?

Button with random outcome?

Re: Button with random outcome? Posted by Drshark on Sat Jun 24th 2006 at 12:29pm
Drshark
42 posts
Posted 2006-06-24 12:29pm
Drshark
member
42 posts 24 snarkmarks Registered: Jan 22nd 2005
Right, so one of the biggest problems with "The Hidden: Source" is that not many maps are dark. My map is alittle dark in some spots, but i want the hidden to be able to turn the light off.

Example: I have a hallway with 3 lights. I want a RANDOM light to go out at the press of a button. The button will have a green glow when all lights are off and a red glow when they're off.

Now, i've found the model i will be using (models/props_combine/CombineButton.mdl), and made a func_button, textured with trigger, and then parented it to the model.

Now i want to know how to

1: Make a green and red light, that will switch when pressed
2: Make a random light (or more) turn off when pressed (i'm guessing it has something to do with a logic_auto or logic_timer)
3: How to make the lights reset after a certain ammount of time.

I searched the turtorials, but it only showed me what a func_button was.

Help will be much appriciated, and you will be mentioned in the credits once i release the map

-Dr.SharK
Re: Button with random outcome? Posted by Cyax on Mon Jul 3rd 2006 at 4:28pm
Cyax
82 posts
Posted 2006-07-03 4:28pm
Cyax
member
82 posts 347 snarkmarks Registered: Dec 2nd 2003 Location: New York
Isn
[IMG]http://i6.photobucket.com/albums/y249/MasterCyax/MasterCyaxNHM.jpg[/IMG]