# Door that opens after a certain amount of points are captured?

Discussion in 'Mapping Questions & Discussion' started by Prettyman, Jun 7, 2011.

1. ### PrettymanL1: Registered

Messages:
30
Positive Ratings:
1
I'm making a five-point attack/defend map, and I want to have a door that opens after the first four points are captured to allow access to the final point. I'm a bit confused on how to do this, so any help will be greatly appreciated.

2. ### REEJL7: Fancy Member

Messages:
437
Positive Ratings:
176
how about the door opens after capturing one CP which had a requirement of other CPs to be captured?

Edit: or are you just asking about the exact formula for input which opens door?

3. ### aaFaux RhinocerosAlso known as Dr. Element

Messages:
1,482
Positive Ratings:
1,585
I suppose the first 4 points can be capped in any order, since this is a problem (?)

If thats the case, i dont know
Maybe there is a variable that can store a variable, because then it would be possible

4. ### PrettymanL1: Registered

Messages:
30
Positive Ratings:
1
The first four points can be captured in a random order, so I can't have it open after the fourth point, because it could be captured before the other ones.

5. ### Godslayer57L8: Fancy Shmancy Member

Messages:
573
Positive Ratings:
323
Maybe have a series of thin doors that open once each oint is captured eg 1 a , 2 b ,3 c , 4 d etc
That would allow the way to be open after all points are capped.

6. ### Loc_n_lolL10: Glamorous Member

Messages:
726
Positive Ratings:
305
use a math_counter. Each capture increases the counter by one, when the counter hits max (4), it triggers the door.

• Thanks x 1
7. ### PrettymanL1: Registered

Messages:
30
Positive Ratings:
1
That's a great idea! Thank you, kind sir!

8. ### aaMangyCarfaceMapper

Messages:
1,616
Positive Ratings:
1,310
Another way to do this:
4 logic_branches enabled by the relative captures
1 logic_branch listener that opens the door when all 4 are true

9. ### Loc_n_lolL10: Glamorous Member

Messages:
726
Positive Ratings:
305
I knew there was a more elegant way to do it

10. ### aaMangyCarfaceMapper

Messages:
1,616
Positive Ratings:
1,310
technically yours was more elegant

11. ### aagrazrOld Man Mutant Ninja Turtle

Messages:
5,437
Positive Ratings:
3,781
My experience is the "max" I/O doesn't work. I had to specify the amount to get a similar setup to work which required a max of 3 to trigger. IE i had to tell it to trigger when the counter reached 3 and then reset it because just using "max" with a max of 3 didn't work. It wasn't firing for some reason.

Dunno if anyone else has had this problem...

12. ### PrettymanL1: Registered

Messages:
30
Positive Ratings:
1
Yep, loc_n_lol's way works great. Thanks again!