Custom Scripts

Mapster

New Member
Reaction score
4
Ok i hear a lot about these "destroy region" or "destroy unitgroup" and so on.

But what exactly do these do and how do you know what ones to use and where?

I've made a lot of triggers but more than likely they all have leaks so if someone could help me out so i could make some of these for myself that would be awesome ;)
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
888
A leak is a bit of information that is stored in your computer's RAM that is not eliminated after it is used. This unused piece of info takes up space. Each time you create a new leak, it takes up more and more space. Eventually, your computer can't take it. It freezes up. So, to prevent leaks, we use the destroy scripts.

Points: (Position of (Triggering Unit)) leaks. Unless you set it to a Point variable, use the variable, then use this script:

Code:
call RemoveLocation(udg_NameOfPointVariable)

Unit Groups: Pick Every Unit in Unit Group leaks. To remove:

Code:
call DestroyGroup(udg_NameOfUnitGroup)

Special Effects leak.

Other things leak. Look up a leak tutorial. There are a few of them.
 
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