Units in range matching condition - Please explain

ChaosWarlock

New Member
Reaction score
7
I am trying to add all enemy ground units in range of the caster to a unit group.

I am not sure what condition to use.

Set Unit_GRP = Units in range of Point_1 matching [Condition]

Matching unit = enemy?
Picked unit = enemy?
 

Blackveiled

Formerly, Ban-Lord
Reaction score
157
Trigger:
  • Events
    • Game - Event here.
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units within 512.00 of (Position of (Casting unit))) and do (Actions)
        • Loop - Actions


Make sure you use the condition handler (Picked Unit).
 

WolfieeifloW

WEHZ Helper
Reaction score
372
Use Matching Unit when declaring the group;
Use Picked Unit in the Loop - Actions.

EDIT: Matching Unit is used like:
Trigger:
  • Unit Group - Pick every unit in (Units in (Playable map area) matching (((Matching unit) belongs to an ally of Player 1 (Red)) Equal to True)) and do (Actions)
 

PoZoR

New Member
Reaction score
5
and make sure you remove unit group leaks with that, otherwise your map will get slower and slower with every spell cast.

if you don't know how, just google warcraft world editor memory leak
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top