• 🏆 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!

AOE Banish

Status
Not open for further replies.
Level 15
Joined
Jul 9, 2008
Messages
1,552
here this is quite easly done with dummy units casting the spell on a unit group
  • AoE banish
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Bansish AoE
    • Actions
      • Set Cast_loc = (Target point of ability being cast)
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units within 300.00 of Cast_loc matching (((Matching unit) is A structure) Equal to False)) and do (Actions)
        • Loop - Actions
          • Unit - Create 1 Dummy for (Owner of (Triggering unit)) at Cast_loc facing Default building facing degrees
          • Unit - Add Banish (dummy) to (Last created unit)
          • Unit - Set level of Banish (dummy) for (Last created unit) to (Level of Bansish AoE for (Triggering unit))
          • Unit - Order (Last created unit) to Human Blood Mage - Banish (Picked unit)
          • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
      • Custom script: call RemoveLocation(udg_Cast_loc)
Note i didnt know if u wanted it to only be able to hit enemy units or not so i left it as the default witch allows it to be cast on both allies and enemy units
 

Attachments

  • banish.w3x
    19.3 KB · Views: 33
Status
Not open for further replies.
Top