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

Destructible Group / Item Group Leak Problems

Status
Not open for further replies.
Level 14
Joined
Aug 31, 2009
Messages
775
So what I'm trying to do is Pick Every Destructible in a Region and from each picked Destructible, check if there is an item on that Destructible or very near it (they are walkable).

So what I did is:
  • Spawn
    • Events
      • Time - Every 15.00 seconds of game time
    • Conditions
    • Actions
      • Destructible - Pick every destructible in (Playable map area) and do (Actions)
        • Loop - Actions
          • Set temploc = (Position of (Picked destructible))
          • Set tempbool = False
          • Item - Pick every item in (Region centered at temploc with size (50.00, 50.00)) and do (Actions)
            • Loop - Actions
              • Set tempbool = True
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • tempbool Equal to True
            • Then - Actions
              • (Stuff)
            • Else - Actions
              • (Other stuff)
      • Custom script: call RemoveLocation(udg_temploc)
Now, the problem I have is that I leak multiple times in this trigger. Once when creating a Destructible group, again when making a region and again when creating the Item group.

How can I remove these leaks? As there are no "Item Group" or "Desctructible Group" variables.
 
Status
Not open for further replies.
Top