Help with 2 cp's opening a door

C00Kies

L3: Member
Sep 20, 2009
132
58
Hay

I'm making a map that is an A/D A+B>C (Gravel pit) and I am not sure how to make it work so that when both A + B both are captured by Blu, a door is opened. Both A+B are required to open the door. Ive been looking up different entitys on the Dev site but i am not sure how to do it, I'm not vary knowledgeable about entitys. I may be thinking to hard about it and over-looking something but if anyone has any ideas, I would be glad to hear them.

Thanks
 

C00Kies

L3: Member
Sep 20, 2009
132
58
Ok so i put a math counter in and it didn't work

what is did with each Cap's Relay put an output:
OnTrigger math_counter add 1

and on the math counter I set the minimum and maximum legal value to 2 (i also tryed w/ minimum value at 0 and it didn't work) and put an output:
OnGetValue Door Open

I dont know what I did wrong. I made a test_gameplay map to test it so if you need i can send you the vmf.

Thanks
 

C00Kies

L3: Member
Sep 20, 2009
132
58
Ive set it to that and now it works but now the door opens if 1 cp is captured it doesn't require both of them.

the 2 relays are still set to add 1 each
 

C00Kies

L3: Member
Sep 20, 2009
132
58
Ok i fixed it. I hadn't set the add output to only once :facepalm: so capturing a cp lead to adding 1 over and over.

Thanks for all the help it was vary help full :thumbup: