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

How would I get rid of wait here?

Status
Not open for further replies.
Level 5
Joined
May 10, 2009
Messages
88
  • Killing Spree
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Killing Spree
    • Actions
      • -------- Setting Variables --------
      • Set KSUnit = (Triggering unit)
      • Set KSPoint = (Position of KSUnit)
      • Set TempPlayer = (Owner of KSUnit)
      • Set KSAbility = (Ability being cast)
      • Set KSReal = (75.00 x (Real((Level of KSAbility for KSUnit))))
      • -------- Feel Free to Edit This Variable to Change the Area of Effect --------
      • Unit Group - Pick every unit in (Units within 400.00 of KSPoint) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked unit) belongs to an enemy of TempPlayer) Equal to True
              • ((Picked unit) is alive) Equal to True
            • Then - Actions
              • Unit Group - Add (Picked unit) to KillingSpreeTargets
            • Else - Actions
      • -------- ----------------- --------
      • -------- Integer Loop... Yippy! --------
      • For each (Integer A) from 1 to (Number of units in KillingSpreeTargets), do (Actions)
        • Loop - Actions
          • Wait 0.27 seconds
          • Set TempUnit_Copy = (Random unit from KillingSpreeTargets)
          • Set TempPoint_Copy = (Position of TempUnit_Copy)
          • Unit - Move KSUnit instantly to TempPoint_Copy, facing TempPoint_Copy
          • Unit - Cause KSUnit to damage TempUnit_Copy, dealing KSReal damage of attack type Spells and damage type Unknown
          • Set TempPoint_Copy = (Position of KSUnit)
          • Special Effect - Create a special effect at TempPoint_Copy using Abilities\Spells\Orc\MirrorImage\MirrorImageCaster.mdl
          • Special Effect - Destroy (Last created special effect)
          • Animation - Play KSUnit's attack slam animation
          • Floating Text - Create floating text that reads ((String((Integer(KSReal)))) + !) above TempUnit_Copy with Z offset 0.00, using font size 10.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
          • Set TempText = (Last created floating text)
          • Floating Text - Set the velocity of TempText to 64.00 towards 90.00 degrees
          • Floating Text - Change TempText: Disable permanence
          • Floating Text - Change the lifespan of TempText to 5.00 seconds
          • Floating Text - Change the fading age of TempText to 4.00 seconds
          • Unit Group - Remove TempUnit_Copy from KillingSpreeTargets
      • Animation - Reset KSUnit's animation
      • Unit Group - Remove all units from KillingSpreeTargets
      • Custom script: call RemoveLocation(udg_KSPoint)
      • Custom script: call RemoveLocation(udg_TempPoint_Copy)
      • Custom script: set udg_KSUnit = null
      • Custom script: set udg_TempUnit_Copy = null
 
Status
Not open for further replies.
Top