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

[Trigger] Why wont this work?

Status
Not open for further replies.
Level 9
Joined
Jan 17, 2009
Messages
372
I am making a spell and whenever i set a condition to check if a unit is alive when setting my unit group it wont select any units. Please help.. here is an example:
  • Example Spell
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to War Stomp
    • Actions
      • Set Temp_Point = (Position of (Triggering unit))
      • Set UnitGroup = (Units in (Region centered at Temp_Point with size (500.00, 500.00)) matching (((Picked unit) is alive) Equal to True))
      • Unit Group - Pick every unit in UnitGroup and do (Actions)
        • Loop - Actions
          • Unit - Cause (Triggering unit) to damage (Picked unit), dealing 500.00 damage of attack type Spells and damage type Normal
      • Custom script: call RemoveLocation(udg_TempPoint)
      • Custom script: call DestroyGroup(udg_UnitGroup)
why wont this work
please tell me how to fix!
 
Status
Not open for further replies.
Top