Does Interger Loop work with a Wait function?

Wummi

Just Relax and Smile!
Reaction score
58
For the following trigger:

Trigger:
  • Random Trigger
    • Events
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 10, do (Actions)
        • Loop - Actions
          • Set Temp_Point = (Center of (Playable map area))
          • Special Effect - Create a special effect at Temp_Point using Abilities\Spells\Undead\UnholyAura\UnholyAura.mdl
          • Set Temp_SFX[(Integer A)] = (Last created special effect)
          • Custom script: call RemoveLocation (udg_Temp_Point)
          • Wait 2.00 seconds
      • For each (Integer A) from 1 to 10, do (Actions)
        • Loop - Actions
          • Special Effect - Destroy Temp_SFX[(Integer A)]


Does the loop wait for 2 seconds between going from loop 1-2, then 2-3 and so on? So do we end up with a special effect played once every 2 seconds for 10 seconds?
 

Accname

2D-Graphics enthusiast
Reaction score
1,462
why do you post a question like this, if you have done that trigger already just try it and see yourself.
but what i would change about that trigger is the location, in every iteration you set the temppoint variable to the center of the map, just set it before the loop and remove it afterwards.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top