Button with random outcome?
Post Reply
Quote
Re: Button with random outcome?
Posted by Drshark on Sat Jun 24th at 12:29pm 2006


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




Quote
Re: Button with random outcome?
Posted by Cyax on Mon Jul 3rd at 4:28pm 2006


Isn








Post Reply