Trigger Leak

KMDK

Cool Member
Reaction score
1
Can anyone help me fix the leak here?
I was using the Leak Checker and it said this

(Line: 8) (Word: 9) Location Leak
Set Chaos_Meteor_Point_Cast = ((Target point of ability being cast) offset by -400.00 towards (Facing of (Triggering unit)) degrees)
Set Chaos_Meteor_Point_Cast = ((Target point of ability being cast) ^Leak
(Suggested Fix) No suggested fixes.

Here's the trigger anyway

Code:
Chaos Meteor Cast
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Chaos Meteor 
    Actions
        Sound - Play Meteor_Land_Sound <gen>
        Set Chaos_Meteor_Point_Cast = ((Target point of ability being cast) offset by -400.00 towards (Facing of (Triggering unit)) degrees)
        Unit - Create 1 Meteor for (Owner of (Triggering unit)) at Chaos_Meteor_Point_Cast facing (Facing of (Casting unit)) degrees
        Set Chaos_Meteor_Unit[0] = (Last created unit)
        Unit Group - Add Chaos_Meteor_Unit[0] to Chaos_Meteor_Group
        Unit - Add a 6.00 second Generic expiration timer to Chaos_Meteor_Unit[0]
        Trigger - Turn on Chaos Meteor Land <gen>
        Trigger - Turn on Chaos Meteor Special Effects <gen>
        Trigger - Turn on Chaos Meteor Special Effects 2 <gen>
        Trigger - Turn on Chaos Meteor Damage <gen>
        Custom script:   call RemoveLocation(udg_Chaos_Meteor_Point_Cast)
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
Set Point = (Target point of ability being cast) offset by ...
do something with Point
Custom script: call RemoveLocation( udg_Point )

"Offset by" creates a new point.
 
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