comparing variables using logic- need help

Apr 14, 2013
663
343
I have got two math counters in my map. One is counting BLU score and the other RED score. I also have a round timer entity, and I want to use it, so that when the timer will end, the two math_counter's values will be compared.

I thought of using a logic_compare to do that, but it seems like it can only compare "real" numbers, and not variables, like the ones in the math_counters.
How can I compare two variables in source?
 

henke37

aa
Sep 23, 2011
2,075
515
The logic_compare entity has several inputs. And math_counter has some outputs. I think you get what I am saying here.
 

A Boojum Snark

Toraipoddodezain Mazahabado
aa
Nov 2, 2007
4,775
7,670
blue counter (outvalue) > compare (setvalue)
red counter (outvalue) > compare (setcomparevalue)
timer (onfinished) > compare (compare)
compare (onless/greater/whateverthan) > doThings