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

Group dont work with Loop?

Status
Not open for further replies.
Level 9
Joined
Jun 26, 2005
Messages
511
  • warstomp
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Warstomp
    • Actions
      • Set DVU[1] = (Triggering unit)
      • Animation - Play DVU[1]'s attack 2 animation
      • Set DVP[1] = (Position of DVU[1])
      • Set DVG = (Units within 512.00 of DVP[1] matching (((Matching unit) belongs to an enemy of (Owner of DVU[1])) Equal to True))
      • Unit Group - Pick every unit in DVG and do (Actions)
        • Loop - Actions
          • Set DVS = (Last created special effect)
          • Custom script: call RemoveLocation(udg_DVP[1])
          • Set DVP[1] = (Position of DVU[1])
          • Unit - Move (Picked unit) instantly to DVP[1]
          • Custom script: call RemoveLocation(udg_DVP[1])
          • Animation - Change DVU[1]'s animation speed to 10.00% of its original speed
          • For each (Integer A) from 1 to 10, do (Actions)
            • Loop - Actions
              • Set DVP[1] = (Position of DVU[1])
              • Set DVP[2] = (Position of (Picked unit))
              • Set DVP[3] = (DVP[1] offset by 100.00 towards (Facing of DVU[1]) degrees)
              • Unit - Move (Picked unit) instantly to DVP[2]
              • Unit - Cause DVU[1] to damage (Picked unit), dealing 10.00 damage of attack type Spells and damage type Normal
              • Custom script: call RemoveLocation(udg_DVP[1])
              • Custom script: call RemoveLocation(udg_DVP[2])
              • Custom script: call RemoveLocation(udg_DVP[3])
              • Wait 0.01 seconds
      • Animation - Change DVU[1]'s animation speed to 100.00% of its original speed
did i do anything wrong?
 
Level 19
Joined
Aug 24, 2007
Messages
2,888
Using Wait in Unit Group actions causes problem as I know
btw another loop of integer a will break this if executed while looping
 
Status
Not open for further replies.
Top