Memory Leak Trigger

Morbid

New Member
Reaction score
0
I have a memory leak after this trigger is triggered a few times. There are another two triggers to go with this, but the leak is caused by this trigger. Any help much appreciated.

Thanks,
Morbid.

Trigger:
  • Events:
    • Unit - A Unit begins casting an Ability
    • Conditions:
    • ((Ability being cast) Equal to (==) Claim ) and ((Owner of (Target unit of ability being cast)) Equal to (==) Player 3 (Teal))
    • Actions:
    • Unit - Kill (Target unit of ability being cast)
    • If ((Owner of (Triggering unit)) Equal to (==) Player 1 (Red)) then do (Unit - Create 1 Tower (Undead) for Player 1 (Red) at (Position of (Target unit of ability being cast)) Facing Default building facing (270.0) degrees) else do (Do nothing)
    • If ((Owner of (Triggering unit)) Equal to (==) Player 2 (Blue)) then do (Unit - Create 1 Tower for Player 2 (Blue) at (Position of (Target unit of ability being cast)) Facing Default building facing (270.0) degrees) else do (Do nothing)
 

Laiev

Hey Listen!!
Reaction score
188
Trigger:
  • If ((Owner of (Triggering unit)) Equal to (==) Player 1 (Red)) then do (Unit - Create 1 Tower (Undead) for Player 1 (Red) at (Position of (Target unit of ability being cast)) Facing Default building facing (270.0) degrees) else do (Do nothing)

Leaks "at (Position of (Target unit of ability being cast))"

Trigger:
  • If ((Owner of (Triggering unit)) Equal to (==) Player 2 (Blue)) then do (Unit - Create 1 Tower for Player 2 (Blue) at (Position of (Target unit of ability being cast)) Facing Default building facing (270.0) degrees) else do (Do nothing)

Leak "at (Position of (Target unit of ability being cast))"

to fix it, if you don't know, set position in variable, use the variable in the point and when you done with use, Custom Script: call RemoveLocation (udg_<your variable>)
 
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