Counter Problems

UltimentM

L1: Registered
May 4, 2014
30
14
I need some help with the maths counters. I have two of them (each of them count from 0-7) and I want something to happen when one of them reaches 4 or more, but stops when it goes back down to 3. Is there any way to do that? Also, how do you reset a counter at the end of a round?
 

Vincent

&#128296 Grandmaster Lizard Wizard Jedi &#128296
aa
Sep 5, 2009
912
684
logic_compare like Henke said; I wasn't aware that existed.

Also if you set up your gamemode correctly and you can actually round win then all your entities should refresh on a new round automatically. Side note using OnMultiNewMap with logic_auto's is a good idea if you want something to happen only on map spawn and not when a new round starts.
 
Last edited:

henke37

aa
Sep 23, 2011
2,075
515
Use a logic_compare and that's it. No need to mess around with the max and min of the counters.
 

worMatty

Repacking Evangelist
aa
Jul 22, 2014
1,257
999
You can make your math_counter send its value to a logic_case each time it's updated. Simply give it the output OutValue, pointing to the logic_case, and leave the parameter field blank.

In the properties of the logic_case, enter the triggering numbers in each Value field.
E.G.
Case 01 - 4
Case 02 - 3
Then simply specify the outputs that should be performed upon each case, in the logic_case's outputs tab.

If the logic_case is sent a number that it doesn't have a case for (0, 1, 2, 5, 6 and 7), it won't fire any outputs.
 

YM

LVL100 YM
aa
Dec 5, 2007
7,135
6,056
Before I attempt and describe a solution, let me check I have the desire correct:

You want something to become enabled when either is >= 4 and disabled when both are <4?