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

Does this leak?

Status
Not open for further replies.
Level 8
Joined
Jul 17, 2004
Messages
283
  • Events
    • Map initialization
  • Conditions
  • Actions
    • Set SFX = Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
    • Set tempPoint1 = (Center of tempRegion <gen>)
    • Set tempPoint2 = (tempPoint1 offset by tempReal1 towards tempReal2 degrees)
  • Events
    • Time - Every 0.03 seconds of game time
  • Conditions
  • Actions
    • Set Timer = (Timer + 0.05)
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • Timer Equal to 0.05
      • Then - Actions
        • Special Effect - Create a special effect at (Center of tempRegion <gen>) using SFX
      • Else - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • Timer Equal to 0.40
          • Then - Actions
            • Set tempReal1 = 150.00
            • Set tempReal2 = 0.00
            • Special Effect - Create a special effect at (tempPoint1 offset by tempReal1 towards tempReal2 degrees) using SFX
            • Special Effect - Destroy (Last created special effect)
            • Set tempReal2 = (tempReal2 + 30.00)
            • Special Effect - Create a special effect at (tempPoint1 offset by tempReal1 towards tempReal2 degrees) using SFX
            • Special Effect - Destroy (Last created special effect)
            • Set tempReal2 = (tempReal2 + 30.00)
            • Special Effect - Create a special effect at (tempPoint1 offset by tempReal1 towards tempReal2 degrees) using SFX
            • Special Effect - Destroy (Last created special effect)
            • Set tempReal2 = (tempReal2 + 30.00)
            • Special Effect - Create a special effect at (tempPoint1 offset by tempReal1 towards tempReal2 degrees) using SFX
            • Special Effect - Destroy (Last created special effect)
            • Set tempReal2 = (tempReal2 + 30.00)
            • Special Effect - Create a special effect at (tempPoint1 offset by tempReal1 towards tempReal2 degrees) using SFX
            • Special Effect - Destroy (Last created special effect)
            • Set tempReal2 = (tempReal2 + 30.00)
            • Special Effect - Create a special effect at (tempPoint1 offset by tempReal1 towards tempReal2 degrees) using SFX
            • Special Effect - Destroy (Last created special effect)
            • Set tempReal2 = (tempReal2 + 30.00)
            • Special Effect - Create a special effect at (tempPoint1 offset by tempReal1 towards tempReal2 degrees) using SFX
            • Special Effect - Destroy (Last created special effect)
            • Set tempReal2 = (tempReal2 + 30.00)
            • Special Effect - Create a special effect at (tempPoint1 offset by tempReal1 towards tempReal2 degrees) using SFX
            • Special Effect - Destroy (Last created special effect)
            • Set tempReal2 = (tempReal2 + 30.00)
            • Special Effect - Create a special effect at (tempPoint1 offset by tempReal1 towards tempReal2 degrees) using SFX
            • Special Effect - Destroy (Last created special effect)
            • Set tempReal2 = (tempReal2 + 30.00)
            • Special Effect - Create a special effect at (tempPoint1 offset by tempReal1 towards tempReal2 degrees) using SFX
            • Special Effect - Destroy (Last created special effect)
            • Set tempReal2 = (tempReal2 + 30.00)
            • Special Effect - Create a special effect at (tempPoint1 offset by tempReal1 towards tempReal2 degrees) using SFX
            • Special Effect - Destroy (Last created special effect)
            • Set tempReal2 = (tempReal2 + 30.00)
            • Special Effect - Create a special effect at (tempPoint1 offset by tempReal1 towards tempReal2 degrees) using SFX
            • Special Effect - Destroy (Last created special effect)
            • Set tempReal2 = (tempReal2 + 30.00)
            • Special Effect - Create a special effect at (tempPoint1 offset by tempReal1 towards tempReal2 degrees) using SFX
            • Special Effect - Destroy (Last created special effect)
            • Set tempReal2 = (tempReal2 + 30.00)
            • Special Effect - Create a special effect at (tempPoint1 offset by tempReal1 towards tempReal2 degrees) using SFX
            • Special Effect - Destroy (Last created special effect)
            • Set tempReal2 = (tempReal2 + 30.00)
            • Special Effect - Create a special effect at (tempPoint1 offset by tempReal1 towards tempReal2 degrees) using SFX
            • Special Effect - Destroy (Last created special effect)
            • Set tempReal2 = (tempReal2 + 30.00)
            • Special Effect - Create a special effect at (tempPoint1 offset by tempReal1 towards tempReal2 degrees) using SFX
            • Special Effect - Destroy (Last created special effect)
          • Else - Actions
            • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              • If - Conditions
                • Timer Equal to 0.75
              • Then - Actions
                • Set tempReal1 = 300.00
                • Set tempReal2 = 0.00
                • Special Effect - Create a special effect at (tempPoint1 offset by tempReal1 towards tempReal2 degrees) using SFX
                • Special Effect - Destroy (Last created special effect)
                • Set tempReal2 = (tempReal2 + 30.00)
                • Special Effect - Create a special effect at (tempPoint1 offset by tempReal1 towards tempReal2 degrees) using SFX
                • Special Effect - Destroy (Last created special effect)
                • Set tempReal2 = (tempReal2 + 30.00)
                • Special Effect - Create a special effect at (tempPoint1 offset by tempReal1 towards tempReal2 degrees) using SFX
                • Special Effect - Destroy (Last created special effect)
                • Set tempReal2 = (tempReal2 + 30.00)
                • Special Effect - Create a special effect at (tempPoint1 offset by tempReal1 towards tempReal2 degrees) using SFX
                • Special Effect - Destroy (Last created special effect)
                • Set tempReal2 = (tempReal2 + 30.00)
                • Special Effect - Create a special effect at (tempPoint1 offset by tempReal1 towards tempReal2 degrees) using SFX
                • Special Effect - Destroy (Last created special effect)
                • Set tempReal2 = (tempReal2 + 30.00)
                • Special Effect - Create a special effect at (tempPoint1 offset by tempReal1 towards tempReal2 degrees) using SFX
                • Special Effect - Destroy (Last created special effect)
                • Set tempReal2 = (tempReal2 + 30.00)
                • Special Effect - Create a special effect at (tempPoint1 offset by tempReal1 towards tempReal2 degrees) using SFX
                • Special Effect - Destroy (Last created special effect)
                • Set tempReal2 = (tempReal2 + 30.00)
                • Special Effect - Create a special effect at (tempPoint1 offset by tempReal1 towards tempReal2 degrees) using SFX
                • Special Effect - Destroy (Last created special effect)
                • Set tempReal2 = (tempReal2 + 30.00)
                • Special Effect - Create a special effect at (tempPoint1 offset by tempReal1 towards tempReal2 degrees) using SFX
                • Special Effect - Destroy (Last created special effect)
                • Set tempReal2 = (tempReal2 + 30.00)
                • Special Effect - Create a special effect at (tempPoint1 offset by tempReal1 towards tempReal2 degrees) using SFX
                • Special Effect - Destroy (Last created special effect)
                • Set tempReal2 = (tempReal2 + 30.00)
                • Special Effect - Create a special effect at (tempPoint1 offset by tempReal1 towards tempReal2 degrees) using SFX
                • Special Effect - Destroy (Last created special effect)
                • Set tempReal2 = (tempReal2 + 30.00)
                • Special Effect - Create a special effect at (tempPoint1 offset by tempReal1 towards tempReal2 degrees) using SFX
                • Special Effect - Destroy (Last created special effect)
                • Set tempReal2 = (tempReal2 + 30.00)
                • Special Effect - Create a special effect at (tempPoint1 offset by tempReal1 towards tempReal2 degrees) using SFX
                • Special Effect - Destroy (Last created special effect)
                • Set tempReal2 = (tempReal2 + 30.00)
                • Special Effect - Create a special effect at (tempPoint1 offset by tempReal1 towards tempReal2 degrees) using SFX
                • Special Effect - Destroy (Last created special effect)
                • Set tempReal2 = (tempReal2 + 30.00)
                • Special Effect - Create a special effect at (tempPoint1 offset by tempReal1 towards tempReal2 degrees) using SFX
                • Special Effect - Destroy (Last created special effect)
                • Set tempReal2 = (tempReal2 + 30.00)
                • Special Effect - Create a special effect at (tempPoint1 offset by tempReal1 towards tempReal2 degrees) using SFX
                • Special Effect - Destroy (Last created special effect)
                • Custom script: call RemoveLocation(udg_tempPoint1)
                • Custom script: call RemoveLocation(udg_tempPoint2)
                • Trigger - Turn off (This trigger)
              • Else - Actions
 

Chaosy

Tutorial Reviewer
Level 40
Joined
Jun 9, 2011
Messages
13,183
just to explain in another way than death.
you sadly need to create 2 point variables for that. Like

loc1 = position of my awesomeness
loc 2 = position of loc1 offset X degree X
//use loc 2
call RemoveLocation(udg_loc2)
loc 2 = position of loc1 offset X degree X
//use loc 2
call RemoveLocation(udg_loc2)

and so on, changing the real variable like you do does actually leak since it generates a new location which isnt removed.
 
Level 8
Joined
Jul 17, 2004
Messages
283
So is this how it needs to be set up?

  • Events
    • Time - Every 0.03 seconds of game time
  • Conditions
  • Actions
    • Set Timer = (Timer + 0.05)
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • Timer Equal to 0.05
      • Then - Actions
        • Set SFX = Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
        • Set tempPoint1 = (Center of tempRegion <gen>)
        • Special Effect - Create a special effect at tempPoint1 using SFX
        • Special Effect - Destroy (Last created special effect)
        • Custom script: call RemoveLocation(udg_tempPoint1)
      • Else - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • Timer Equal to 0.40
          • Then - Actions
            • Set tempReal1 = 150.00
            • Set tempReal2 = 0.00
            • Set tempPoint1 = (Center of tempRegion <gen>)
            • Set tempPoint2 = (tempPoint1 offset by tempReal1 towards tempReal2 degrees)
            • Special Effect - Create a special effect at tempPoint2 using SFX
            • Special Effect - Destroy (Last created special effect)
            • Custom script: call RemoveLocation(udg_tempPoint1)
            • Custom script: call RemoveLocation(udg_tempPoint2)
            • Set tempReal2 = (tempReal2 + 30.00)
            • Set tempPoint1 = (Center of tempRegion <gen>)
            • Set tempPoint2 = (tempPoint1 offset by tempReal1 towards tempReal2 degrees)
            • Special Effect - Create a special effect at tempPoint2 using SFX
            • Special Effect - Destroy (Last created special effect)
            • Custom script: call RemoveLocation(udg_tempPoint1)
            • Custom script: call RemoveLocation(udg_tempPoint2)
            • Set tempReal2 = (tempReal2 + 30.00)
            • Set tempPoint1 = (Center of tempRegion <gen>)
            • Set tempPoint2 = (tempPoint1 offset by tempReal1 towards tempReal2 degrees)
            • Special Effect - Create a special effect at tempPoint2 using SFX
            • Special Effect - Destroy (Last created special effect)
            • Custom script: call RemoveLocation(udg_tempPoint1)
            • Custom script: call RemoveLocation(udg_tempPoint2)
            • Set tempReal2 = (tempReal2 + 30.00)
            • Set tempPoint1 = (Center of tempRegion <gen>)
            • Set tempPoint2 = (tempPoint1 offset by tempReal1 towards tempReal2 degrees)
            • Special Effect - Create a special effect at tempPoint2 using SFX
            • Special Effect - Destroy (Last created special effect)
            • Custom script: call RemoveLocation(udg_tempPoint1)
            • Custom script: call RemoveLocation(udg_tempPoint2)
            • Set tempReal2 = (tempReal2 + 30.00)
            • Set tempPoint1 = (Center of tempRegion <gen>)
            • Set tempPoint2 = (tempPoint1 offset by tempReal1 towards tempReal2 degrees)
            • Special Effect - Create a special effect at tempPoint2 using SFX
            • Special Effect - Destroy (Last created special effect)
            • Custom script: call RemoveLocation(udg_tempPoint1)
            • Custom script: call RemoveLocation(udg_tempPoint2)
            • Set tempReal2 = (tempReal2 + 30.00)
            • Set tempPoint1 = (Center of tempRegion <gen>)
            • Set tempPoint2 = (tempPoint1 offset by tempReal1 towards tempReal2 degrees)
            • Special Effect - Create a special effect at tempPoint2 using SFX
            • Special Effect - Destroy (Last created special effect)
            • Custom script: call RemoveLocation(udg_tempPoint1)
            • Custom script: call RemoveLocation(udg_tempPoint2)
            • Set tempReal2 = (tempReal2 + 30.00)
            • Set tempPoint1 = (Center of tempRegion <gen>)
            • Set tempPoint2 = (tempPoint1 offset by tempReal1 towards tempReal2 degrees)
            • Special Effect - Create a special effect at tempPoint2 using SFX
            • Special Effect - Destroy (Last created special effect)
            • Custom script: call RemoveLocation(udg_tempPoint1)
            • Custom script: call RemoveLocation(udg_tempPoint2)
            • Set tempReal2 = (tempReal2 + 30.00)
            • Set tempPoint1 = (Center of tempRegion <gen>)
            • Set tempPoint2 = (tempPoint1 offset by tempReal1 towards tempReal2 degrees)
            • Special Effect - Create a special effect at tempPoint2 using SFX
            • Special Effect - Destroy (Last created special effect)
            • Custom script: call RemoveLocation(udg_tempPoint1)
            • Custom script: call RemoveLocation(udg_tempPoint2)
            • Set tempReal2 = (tempReal2 + 30.00)
            • Set tempPoint1 = (Center of tempRegion <gen>)
            • Set tempPoint2 = (tempPoint1 offset by tempReal1 towards tempReal2 degrees)
            • Special Effect - Create a special effect at tempPoint2 using SFX
            • Special Effect - Destroy (Last created special effect)
            • Custom script: call RemoveLocation(udg_tempPoint1)
            • Custom script: call RemoveLocation(udg_tempPoint2)
            • Set tempReal2 = (tempReal2 + 30.00)
            • Set tempPoint1 = (Center of tempRegion <gen>)
            • Set tempPoint2 = (tempPoint1 offset by tempReal1 towards tempReal2 degrees)
            • Special Effect - Create a special effect at tempPoint2 using SFX
            • Special Effect - Destroy (Last created special effect)
            • Custom script: call RemoveLocation(udg_tempPoint1)
            • Custom script: call RemoveLocation(udg_tempPoint2)
            • Set tempReal2 = (tempReal2 + 30.00)
            • Set tempPoint1 = (Center of tempRegion <gen>)
            • Set tempPoint2 = (tempPoint1 offset by tempReal1 towards tempReal2 degrees)
            • Special Effect - Create a special effect at tempPoint2 using SFX
            • Special Effect - Destroy (Last created special effect)
            • Custom script: call RemoveLocation(udg_tempPoint1)
            • Custom script: call RemoveLocation(udg_tempPoint2)
            • Set tempReal2 = (tempReal2 + 30.00)
            • Set tempPoint1 = (Center of tempRegion <gen>)
            • Set tempPoint2 = (tempPoint1 offset by tempReal1 towards tempReal2 degrees)
            • Special Effect - Create a special effect at tempPoint2 using SFX
            • Special Effect - Destroy (Last created special effect)
            • Custom script: call RemoveLocation(udg_tempPoint1)
            • Custom script: call RemoveLocation(udg_tempPoint2)
            • Set tempReal2 = (tempReal2 + 30.00)
            • Set tempPoint1 = (Center of tempRegion <gen>)
            • Set tempPoint2 = (tempPoint1 offset by tempReal1 towards tempReal2 degrees)
            • Special Effect - Create a special effect at tempPoint2 using SFX
            • Special Effect - Destroy (Last created special effect)
            • Custom script: call RemoveLocation(udg_tempPoint1)
            • Custom script: call RemoveLocation(udg_tempPoint2)
            • Set tempReal2 = (tempReal2 + 30.00)
            • Set tempPoint1 = (Center of tempRegion <gen>)
            • Set tempPoint2 = (tempPoint1 offset by tempReal1 towards tempReal2 degrees)
            • Special Effect - Create a special effect at tempPoint2 using SFX
            • Special Effect - Destroy (Last created special effect)
            • Custom script: call RemoveLocation(udg_tempPoint1)
            • Custom script: call RemoveLocation(udg_tempPoint2)
            • Set tempReal2 = (tempReal2 + 30.00)
            • Set tempPoint1 = (Center of tempRegion <gen>)
            • Set tempPoint2 = (tempPoint1 offset by tempReal1 towards tempReal2 degrees)
            • Special Effect - Create a special effect at tempPoint2 using SFX
            • Special Effect - Destroy (Last created special effect)
            • Custom script: call RemoveLocation(udg_tempPoint1)
            • Custom script: call RemoveLocation(udg_tempPoint2)
            • Set tempReal2 = (tempReal2 + 30.00)
            • Set tempPoint1 = (Center of tempRegion <gen>)
            • Set tempPoint2 = (tempPoint1 offset by tempReal1 towards tempReal2 degrees)
            • Special Effect - Create a special effect at tempPoint2 using SFX
            • Special Effect - Destroy (Last created special effect)
            • Custom script: call RemoveLocation(udg_tempPoint1)
            • Custom script: call RemoveLocation(udg_tempPoint2)
          • Else - Actions
            • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              • If - Conditions
                • Timer Equal to 0.75
              • Then - Actions
                • Set tempReal1 = 300.00
                • Set tempReal2 = 0.00
                • Set tempPoint1 = (Center of tempRegion <gen>)
                • Set tempPoint2 = (tempPoint1 offset by tempReal1 towards tempReal2 degrees)
                • Special Effect - Create a special effect at tempPoint2 using SFX
                • Special Effect - Destroy (Last created special effect)
                • Custom script: call RemoveLocation(udg_tempPoint1)
                • Custom script: call RemoveLocation(udg_tempPoint2)
                • Set tempReal2 = (tempReal2 + 30.00)
                • Set tempPoint1 = (Center of tempRegion <gen>)
                • Set tempPoint2 = (tempPoint1 offset by tempReal1 towards tempReal2 degrees)
                • Special Effect - Create a special effect at tempPoint2 using SFX
                • Special Effect - Destroy (Last created special effect)
                • Custom script: call RemoveLocation(udg_tempPoint1)
                • Custom script: call RemoveLocation(udg_tempPoint2)
                • Set tempReal2 = (tempReal2 + 30.00)
                • Set tempPoint1 = (Center of tempRegion <gen>)
                • Set tempPoint2 = (tempPoint1 offset by tempReal1 towards tempReal2 degrees)
                • Special Effect - Create a special effect at tempPoint2 using SFX
                • Special Effect - Destroy (Last created special effect)
                • Custom script: call RemoveLocation(udg_tempPoint1)
                • Custom script: call RemoveLocation(udg_tempPoint2)
                • Set tempReal2 = (tempReal2 + 30.00)
                • Set tempPoint1 = (Center of tempRegion <gen>)
                • Set tempPoint2 = (tempPoint1 offset by tempReal1 towards tempReal2 degrees)
                • Special Effect - Create a special effect at tempPoint2 using SFX
                • Special Effect - Destroy (Last created special effect)
                • Custom script: call RemoveLocation(udg_tempPoint1)
                • Custom script: call RemoveLocation(udg_tempPoint2)
                • Set tempReal2 = (tempReal2 + 30.00)
                • Set tempPoint1 = (Center of tempRegion <gen>)
                • Set tempPoint2 = (tempPoint1 offset by tempReal1 towards tempReal2 degrees)
                • Special Effect - Create a special effect at tempPoint2 using SFX
                • Special Effect - Destroy (Last created special effect)
                • Custom script: call RemoveLocation(udg_tempPoint1)
                • Custom script: call RemoveLocation(udg_tempPoint2)
                • Set tempReal2 = (tempReal2 + 30.00)
                • Set tempPoint1 = (Center of tempRegion <gen>)
                • Set tempPoint2 = (tempPoint1 offset by tempReal1 towards tempReal2 degrees)
                • Special Effect - Create a special effect at tempPoint2 using SFX
                • Special Effect - Destroy (Last created special effect)
                • Custom script: call RemoveLocation(udg_tempPoint1)
                • Custom script: call RemoveLocation(udg_tempPoint2)
                • Set tempReal2 = (tempReal2 + 30.00)
                • Set tempPoint1 = (Center of tempRegion <gen>)
                • Set tempPoint2 = (tempPoint1 offset by tempReal1 towards tempReal2 degrees)
                • Special Effect - Create a special effect at tempPoint2 using SFX
                • Special Effect - Destroy (Last created special effect)
                • Custom script: call RemoveLocation(udg_tempPoint1)
                • Custom script: call RemoveLocation(udg_tempPoint2)
                • Set tempReal2 = (tempReal2 + 30.00)
                • Set tempPoint1 = (Center of tempRegion <gen>)
                • Set tempPoint2 = (tempPoint1 offset by tempReal1 towards tempReal2 degrees)
                • Special Effect - Create a special effect at tempPoint2 using SFX
                • Special Effect - Destroy (Last created special effect)
                • Custom script: call RemoveLocation(udg_tempPoint1)
                • Custom script: call RemoveLocation(udg_tempPoint2)
                • Set tempReal2 = (tempReal2 + 30.00)
                • Set tempPoint1 = (Center of tempRegion <gen>)
                • Set tempPoint2 = (tempPoint1 offset by tempReal1 towards tempReal2 degrees)
                • Special Effect - Create a special effect at tempPoint2 using SFX
                • Special Effect - Destroy (Last created special effect)
                • Custom script: call RemoveLocation(udg_tempPoint1)
                • Custom script: call RemoveLocation(udg_tempPoint2)
                • Set tempReal2 = (tempReal2 + 30.00)
                • Set tempPoint1 = (Center of tempRegion <gen>)
                • Set tempPoint2 = (tempPoint1 offset by tempReal1 towards tempReal2 degrees)
                • Special Effect - Create a special effect at tempPoint2 using SFX
                • Special Effect - Destroy (Last created special effect)
                • Custom script: call RemoveLocation(udg_tempPoint1)
                • Custom script: call RemoveLocation(udg_tempPoint2)
                • Set tempReal2 = (tempReal2 + 30.00)
                • Set tempPoint1 = (Center of tempRegion <gen>)
                • Set tempPoint2 = (tempPoint1 offset by tempReal1 towards tempReal2 degrees)
                • Special Effect - Create a special effect at tempPoint2 using SFX
                • Special Effect - Destroy (Last created special effect)
                • Custom script: call RemoveLocation(udg_tempPoint1)
                • Custom script: call RemoveLocation(udg_tempPoint2)
                • Set tempReal2 = (tempReal2 + 30.00)
                • Set tempPoint1 = (Center of tempRegion <gen>)
                • Set tempPoint2 = (tempPoint1 offset by tempReal1 towards tempReal2 degrees)
                • Special Effect - Create a special effect at tempPoint2 using SFX
                • Special Effect - Destroy (Last created special effect)
                • Custom script: call RemoveLocation(udg_tempPoint1)
                • Custom script: call RemoveLocation(udg_tempPoint2)
                • Set tempReal2 = (tempReal2 + 30.00)
                • Set tempPoint1 = (Center of tempRegion <gen>)
                • Set tempPoint2 = (tempPoint1 offset by tempReal1 towards tempReal2 degrees)
                • Special Effect - Create a special effect at tempPoint2 using SFX
                • Special Effect - Destroy (Last created special effect)
                • Custom script: call RemoveLocation(udg_tempPoint1)
                • Custom script: call RemoveLocation(udg_tempPoint2)
                • Set tempReal2 = (tempReal2 + 30.00)
                • Set tempPoint1 = (Center of tempRegion <gen>)
                • Set tempPoint2 = (tempPoint1 offset by tempReal1 towards tempReal2 degrees)
                • Special Effect - Create a special effect at tempPoint2 using SFX
                • Special Effect - Destroy (Last created special effect)
                • Custom script: call RemoveLocation(udg_tempPoint1)
                • Custom script: call RemoveLocation(udg_tempPoint2)
                • Set tempReal2 = (tempReal2 + 30.00)
                • Set tempPoint1 = (Center of tempRegion <gen>)
                • Set tempPoint2 = (tempPoint1 offset by tempReal1 towards tempReal2 degrees)
                • Special Effect - Create a special effect at tempPoint2 using SFX
                • Special Effect - Destroy (Last created special effect)
                • Custom script: call RemoveLocation(udg_tempPoint1)
                • Custom script: call RemoveLocation(udg_tempPoint2)
                • Set tempReal2 = (tempReal2 + 30.00)
                • Set tempPoint1 = (Center of tempRegion <gen>)
                • Set tempPoint2 = (tempPoint1 offset by tempReal1 towards tempReal2 degrees)
                • Special Effect - Create a special effect at tempPoint2 using SFX
                • Special Effect - Destroy (Last created special effect)
                • Custom script: call RemoveLocation(udg_tempPoint1)
                • Custom script: call RemoveLocation(udg_tempPoint2)
                • Trigger - Turn off (This trigger)
              • Else - Actions
 
Level 37
Joined
Mar 6, 2006
Messages
9,240
Use loops to make your life easier

  • Set point = (Center of (Playable map area))
  • Set r1 = 300.00
  • Set r2 = 0.00
  • For each (Integer i) from 1 to 10, do (Actions)
    • Loop - Actions
      • Set point2 = (point offset by r1 towards r2 degrees)
      • Special Effect - Create a special effect at point2 using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
      • Special Effect - Destroy (Last created special effect)
      • Set r2 = (r2 + 30.00)
      • Custom script: call RemoveLocation(udg_point2)
  • Custom script: call RemoveLocation(udg_point)
 
Status
Not open for further replies.
Top