• 🏆 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!
  • ✅ Time to vote for the top 3 models! The POLL for Hive's 6th HD Modeling Contest: Mechanical is now open! 📅 Poll close on July 16, 2024! 🔗 Cast your vote now!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!

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