comparing variables using logic- need help

Discussion in 'Mapping Questions & Discussion' started by takabuschik, Jul 16, 2014.

  1. takabuschik

    aa takabuschik

    Messages:
    660
    Positive Ratings:
    308
    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?
     
  2. henke37

    aa henke37

    Messages:
    1,832
    Positive Ratings:
    420
    The logic_compare entity has several inputs. And math_counter has some outputs. I think you get what I am saying here.
     
    • Thanks Thanks x 1
  3. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,767
    Positive Ratings:
    5,508
    blue counter (outvalue) > compare (setvalue)
    red counter (outvalue) > compare (setcomparevalue)
    timer (onfinished) > compare (compare)
    compare (onless/greater/whateverthan) > doThings
     
    • Thanks Thanks x 1
  4. takabuschik

    aa takabuschik

    Messages:
    660
    Positive Ratings:
    308
    Thanks, I didn't know about the outvalue and setvalue I/Os.