This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
I'm wondering whether there isa way to check if all units from a unit group are in a region? I've been looking but it seems I'm unable to find it
Example Events Local Variables UnitsAreInRegion = true <Boolean> Conditions Actions Unit Group - Pick each unit in Some Group and do (Actions) Actions General - If (Conditions) then do (Actions) else do (Actions) If ((Picked unit) is in Some Region) == true Then Else Variable - Set UnitsAreInRegion = false General - If (Conditions) then do (Actions) else do (Actions) If UnitsAreInRegion == true Then ------- Do your thing here if the units are in the region. Else ------- Stuff here for if the units are not in the region, or you can just ignore this.
May also be useful to run this trigger whenever a specific unit from your desired unit group enters the region. Keeps the number of trigger calls down.
Yea thats what I'm doing, it's just to make siuer each player's unit is in the area before I start the event. Thanks alot :)
I'm wondering whether there isa way to check if all units from a unit group are in a region? I've been looking but it seems I'm unable to find it
May also be useful to run this trigger whenever a specific unit from your desired unit group enters the region. Keeps the number of trigger calls down.
Yea thats what I'm doing, it's just to make siuer each player's unit is in the area before I start the event. Thanks alot :)