Posted: Fri Jan 27, 2006 3:07 am
I have a map that checks six teams at the start for taunting, and I want to know if *at least two* of these teams have taunted within x amount of time. I've got this working just fine BUT I cannot seem to "store" the result properly.
What I tried first was having an ambient unit that has its vitality lowered by an increment just once for each team that taunts. Then I check to see if its vitality is less than an amount such that I know at least two teams have taunted. It's not working - I suspect because it's ambient? Who knows.
So my question is this: it'd be REALLY nice if I could just increment or decrement a single number stored somewhere and then just look at the value of this number. For example, start the number at 0 and if a team taunts then increment it, being sure not to increment it more than once for a given team. That way I can just check to see if this number is >= 2.
Sounds easy enough - but how the heck do I do this in a script? Is this done with Action Sniffing? Something else?
Thanks in advance!
What I tried first was having an ambient unit that has its vitality lowered by an increment just once for each team that taunts. Then I check to see if its vitality is less than an amount such that I know at least two teams have taunted. It's not working - I suspect because it's ambient? Who knows.
So my question is this: it'd be REALLY nice if I could just increment or decrement a single number stored somewhere and then just look at the value of this number. For example, start the number at 0 and if a team taunts then increment it, being sure not to increment it more than once for a given team. That way I can just check to see if this number is >= 2.
Sounds easy enough - but how the heck do I do this in a script? Is this done with Action Sniffing? Something else?
Thanks in advance!