Does this leak?

I

iNsaNe

Guest
Does this leak a point? I am destroying it in a unit group.

Code:
Escape Bombs Destruct Death
    Events
        Destructible - A destructible within Escape Bomb Unit Create <gen> dies
    Conditions
    Actions
        Set EscapeBombs_DeathGroup = (Units within 500.00 of [B](Position of (Dying destructible))[/B])
        Unit Group - Pick every unit in EscapeBombs_DeathGroup and do (Actions)
            Loop - Actions
                Unit - Explode (Picked unit)
        [B]Custom script:   call DestroyGroup(udg_EscapeBombs_DeathGroup)[/B]
 

uberfoop

~=Admiral Stukov=~
Reaction score
177
The point does leak. You need to:

Code:
Escape Bombs Destruct Death
    Events
        Destructible - A destructible within Escape Bomb Unit Create <gen> dies
    Conditions
    Actions
        [b] set LOLUBERH4XPOINT = (Position of (dying destructable)) [/b]
        Set EscapeBombs_DeathGroup = (Units within 500.00 of (LOLUBERH4XPOINT)))
        [b] call RemoveLocation( udg_LOLUBERH4XPOINT ) [/b]
        Unit Group - Pick every unit in EscapeBombs_DeathGroup and do (Actions)
            Loop - Actions
                Unit - Explode (Picked unit)
        Custom script:   call DestroyGroup(udg_EscapeBombs_DeathGroup)

also, I never use the explode unit thingy, so I don't really know, but everyone says it leaks a unit. So you may have to clean that up too.
 

dashival

New Member
Reaction score
11
After you explode the unit, add an expiration timer; that might remove the leak, if there is one.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top