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

Integer A Location Leak

Status
Not open for further replies.
Level 17
Joined
Jun 17, 2010
Messages
2,275
Im using locations that have integer A as their index, and i cant remove the locations because its a timed spell, so if i remove the index it'll mess up the most recent casted spell, but if i remove integer a it will remove all of the locations.

Heres the trigger if u dont know what i mean
  • Star Rain
    • Events
      • Time - Every 0.50 seconds of game time
    • Conditions
    • Actions
      • For each (Integer A) from 1 to SR_Index, do (Actions)
        • Loop - Actions
          • Set SR_RandomPoint[(Integer A)] = (SR_Point[(Integer A)] offset by ((Random real number between 0.00 and SR_AoE_Formula), (Random real number between 0.00 and SR_AoE_Formula)))
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • SR_Timer[(Integer A)] Greater than 0
            • Then - Actions
              • Unit - Create 1 SR Dummy for (Owner of SR_Caster[(Integer A)]) at SR_RandomPoint[(Integer A)] facing Default building facing degrees
              • Unit - Hide (Last created unit)
              • Set SR_StarPoint[(Integer A)] = (Position of (Last created unit))
              • Special Effect - Create a special effect at SR_StarPoint[(Integer A)] using Abilities\Spells\NightElf\Starfall\StarfallTarget.mdl
              • Special Effect - Destroy (Last created special effect)
              • Unit - Kill (Last created unit)
            • Else - Actions
              • Set SR_Index = (SR_Index - 1)
          • Set SR_Timer[(Integer A)] = (SR_Timer[(Integer A)] - 1)
 
Status
Not open for further replies.
Top