• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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