How to permanently delete a region?

naughty

New Member
Reaction score
12
I have 2 triggers, the first trigger adds a new event to the second trigger, which is
Trigger:
  • Trigger - Add to Electric Field Enter <gen> the event (Unit - A unit enters Re_Electric_Field)

but after a while i want that region to be destroyed so the event wont happen. Even though i destroy it with
Trigger:
  • Custom script: call RemoveRect(udg_Re_Electric_Field)

the event still happens. Any clue what to do?
 

Corleone

New Member
Reaction score
44
JASS:
    set udg_Re_Electric_Field = null


That should do the trick. Put that in a custom script after you destroy the region.
 

Curo

Why am I still playing this game...?
Reaction score
109
Keeping with this train of thought: say I create a region every second using a trigger, does this create a leak? Not sure if regions leak.

Because if it does, I should be using the above method.
 

naughty

New Member
Reaction score
12
JASS:
    set udg_Re_Electric_Field = null


That should do the trick. Put that in a custom script after you destroy the region.

This doesn't work :(

Keeping with this train of thought: say I create a region every second using a trigger, does this create a leak? Not sure if regions leak.

Because if it does, I should be using the above method.

It leaks, and you should destroy the regions. But my point here is, the event happens even though the region is destroyed. Any other suggestions?
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      • Ghan
        Administrator - Servers are fun

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top