Unit Group Leak Question

Vnbear

Active Member
Reaction score
12
Code:
Close Gate 1
    Events
        Unit - A unit leaves Gate 1 <gen>
    Conditions
        ((Triggering unit) belongs to an ally of Player 1 (Red)) Equal to True
       [COLOR="Red"] (Number of units in (Units in Gate 1 <gen> matching (((Matching unit) belongs to an ally of Player 1 (Red)) Equal to True))) Equal to 0[/COLOR]
    Actions
        Destructible - Close Iron Gate (Horizontal) 0000 <gen>

I know unit group leak, but does it applies for counting units in unit group (the highlighted part), which is when unit group is in a condition?

My question is does the above leak?
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
Well, that creates a group, puts all "interesting" units inside, counts them, does the test and... forgets there was a group...
In short: yes.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top