Triggers - Memory Leaks

NoradIII

New Member
Reaction score
1
I think I have a leak in my triggers here.
Events
Unit - A unit owned by player 1 (red) is issued an order targeting a point
Actions
Unit group - Order (Units currently selected by player 1 (red)) to move to (center of region 1 <gen>)
It lags hard when I move more than two units.
Can someone explain to me in details how to solve it? I don't know what the fix for groups on the first post is talking about.
 

Andrewgosu

The Silent Pandaren Helper
Reaction score
715
Code:
Lagg
    Events
        Unit - A unit owned by Player 1 (Red) Is issued an order targeting a point
    Conditions
    Actions
        Set tmpPoint = (Center of Region 1 <gen>)
        Set tmpGroup = (Units currently selected by Player 1 (Red))
        Unit Group - Pick every unit in tmpGroup and do (Actions)
            Loop - Actions
                Unit - Order (Picked unit) to Move To tmpPoint
        Custom script:   call DestroyGroup( [B]udg_[/B]tmpGroup )
        Custom script:   call RemoveLocation( [B]udg_[/B]tmpPoint )
 
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