• 🏆 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] For Delay Crush

Status
Not open for further replies.
Level 3
Joined
Jun 17, 2012
Messages
23
Hello guys
i want you report a crush
in my map when use ((for)) action and i want to a delay between ((for)) count i use wait for example 1 seconds but it's crush and only one time the action is run and other ones break.
why?
can answer me?
 
Level 3
Joined
Jun 17, 2012
Messages
23
  • Rocket Barrage
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Rocket Barrage
    • Actions
      • For each (Integer A) from 1 to 15, do (Actions)
        • Loop - Actions
          • Wait 0.10 seconds
          • Unit - Create 1 Caster Dummy for (Owner of (Triggering unit)) at (Position of (Triggering unit)) facing Default building facing degrees
          • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
          • Unit - Add Rocket Barrage Dummy to (Last created unit)
          • Unit - Set level of Rocket Barrage Dummy for (Last created unit) to (Level of Rocket Barrage for (Picked unit))
          • Unit - Order (Last created unit) to Night Elf Warden - Fan Of Knives
my spell just use one fan of knives on enemy and didn't repeat
when i remove the wait is work correct but knives model stack ( i mean rocket because my spell is about rockets)
what i do now
 
Level 39
Joined
Feb 27, 2007
Messages
5,015
Picked unit is just supposed to be Triggering Unit here. IcemanBo is correct about the loop likely getting interrupted; to fix, use the for each Integer Variable from... action instead and make a new integer variable for just this trigger.
 
Status
Not open for further replies.
Top