• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

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,219
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,243
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