• 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.

Destructible Group / Item Group Leak Problems

Status
Not open for further replies.
Level 15
Joined
Aug 31, 2009
Messages
776
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