• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

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

Status
Not open for further replies.
Level 11
Joined
Nov 15, 2007
Messages
800
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.
 
Level 17
Joined
Feb 11, 2011
Messages
1,860
  • 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.
Top