• 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.

Spell Following a Unit

Status
Not open for further replies.
I have this trigger. What I want is for the dummy to be unable to cast if there is another dummy within X range of Fault_Point. It was suggested I use an array.

  • Fault
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Set Fault_Group = (Units in (Playable map area) matching (((Matching unit) has buff Howl of Terror) Equal to True))
      • Unit Group - Pick every unit in Fault_Group and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked unit) is alive) Equal to True
            • Then - Actions
              • Set Fault_Point = (Position of (Picked unit))
              • Unit - Create 1 Dummy for (Owner of (Picked unit)) at Fault_Point facing Default building facing degrees
              • Unit - Add a 10.00 second Generic expiration timer to (Last created unit)
              • Unit - Add Earthquake to (Last created unit)
              • Unit - Order (Last created unit) to Orc Far Seer - Earthquake Fault_Point
              • Custom script: call RemoveLocation(udg_Fault_Point)
            • Else - Actions
      • Custom script: call DestroyGroup (udg_Fault_Group)
 
Status
Not open for further replies.
Top