PDA

View Full Version : How to make a random door open



Archy
23 Jun 2010, 10:18am
This thread is a question...


So my map is a little more complex than this but for the sake of figuring out my problem, lets say I have two doors and I want either one or the other to open each round, randomly. Now I've been following this tutorial but it's just not working.

http://www.fpsbanana.com/tuts/7108 - Instead of color I just did Door and Open

Any help would be great.

Repus
23 Jun 2010, 11:03am
Sorry i didnt read that, don't use timer.

Just use logic_case and trigger to pick random and in case01 door1 open and incase2 door2 open.....

and remember to name cases like: "1" "2"....

Should work.

Bob Loblaw
25 Jun 2010, 12:28am
Giving the cases names doesn't matter in the case of picking random. It only matters if you are using a math_counter or something of the sort.

Repus
26 Jun 2010, 12:24am
Giving the cases names doesn't matter in the case of picking random. It only matters if you are using a math_counter or something of the sort.

I never used such thing, I just tested that thing and it works as i said.

Bob Loblaw
26 Jun 2010, 07:27am
Yours is right, but basically giving Case01 a value of 1 just means that if in the math counters outputs you have "OutValue LogicCase Invalue" Then when the math counter hits 1, whatever case has "1" for a value will be fired. In this case Case01 will be fired.