Creating an ability(Neutral Hostile) that only attacks 1 unit type?

Status
Not open for further replies.
Harvester isn't a target type. You could classify all the workers in your map as Ancients and make the ability only able to target Ancients.
 
  • Trigger
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Set point = (Position of your_unit)
      • Set group = (Units within 250.00 of point matching ((Unit-type of (Matching unit)) Equal to Harvester))
      • Set temp_unit = (Random unit from group)
      • Unit - Order your_unit to Orc Far Seer - Chain Lightning temp_unit
      • Custom script: call RemoveLocation(udg_point)
      • Custom script: call DestroyGroup(udg_group)
Notes: your_unit is the unit that has the Chain Lightning ability. You can change 250 to any distance you want.
 
Status
Not open for further replies.
Back
Top