help with leaks

tork

New Member
Reaction score
2
Does this trigger leak im new to making thing leakles

Code:
FirstEmpireBase
    Events
        Unit - A unit comes within 35.00 of Circle of Power (large) 0029 <gen>
    Conditions
        ((Owner of (Triggering unit)) is an ally of Player 1 (Red)) Equal to True
    Actions
        For each (Integer A) from 1 to 10, do (Actions)
            Loop - Actions
                Set Temp_Point = (Position of Circle of Power (large) 0027 <gen>)
                Special Effect - Create a special effect at Temp_Point using Abilities\Spells\Human\MassTeleport\MassTeleportCaster.mdl
                Set Temp_SFX[(Integer A)] = (Last created special effect)
                Custom script:   call RemoveLocation (udg_Temp_Point)
                Unit - Move (Triggering unit) instantly to (Center of FirstEmpireStart <gen>)
                Camera - Pan camera for (Owner of (Triggering unit)) to (Center of FirstEmpireStart <gen>) over 0.00 seconds
        For each (Integer B) from 1 to 10, do (Actions)
            Loop - Actions
                Set Temp_Point = (Position of Circle of Power (large) 0027 <gen>)
                Special Effect - Create a special effect at Temp_Point using Abilities\Spells\Human\MassTeleport\MassTeleportCaster.mdl
                Set Temp_SFY[(Integer B)] = (Last created special effect)
                Custom script:   call RemoveLocation (udg_Temp_Point)
                Unit - Move (Triggering unit) instantly to (Center of FirstEmpireStart <gen>)
                Camera - Pan camera for (Owner of (Triggering unit)) to (Center of FirstEmpireStart <gen>) over 0.00 seconds
        Wait 2.00 seconds
        For each (Integer A) from 1 to 10, do (Actions)
            Loop - Actions
                Special Effect - Destroy Temp_SFX[(Integer A)]
        For each (Integer B) from 1 to 10, do (Actions)
            Loop - Actions
                Special Effect - Destroy Temp_SFY[(Integer B)]

Thanks for help
 

mordocai

New Member
Reaction score
17
Trigger:
  • Unit - Move (Triggering unit) instantly to (Center of FirstEmpireStart &lt;gen&gt;)
    • Camera - Pan camera for (Owner of (Triggering unit)) to (Center of FirstEmpireStart &lt;gen&gt;) over 0.00 seconds

Location Leaks, assign the location to a variable then move it there
also destroy your point variables using custom script
call DestroyLocation(udg_Temp_Point)
 

Zwiebelchen

You can change this now in User CP.
Reaction score
60
(Center of FirstEmpireStart <gen>) creates a Location every time you use it.
So you create like 4 leaks here.


Btw, I think the mass teleport caster art does not require the wait. You can instantly destroy it after creation and it will still show the art, if I remember correctly.
 

tork

New Member
Reaction score
2
So this works?

Code:
FirstEmpireBase
    Events
        Unit - A unit comes within 35.00 of Circle of Power (large) 0029 <gen>
    Conditions
        ((Owner of (Triggering unit)) is an ally of Player 1 (Red)) Equal to True
    Actions
        Set Temp_Point = (Position of Circle of Power (large) 0029 <gen>)
        Special Effect - Create a special effect at Temp_Point using Abilities\Spells\Human\MassTeleport\MassTeleportCaster.mdl
        Custom script:   call RemoveLocation (udg_Temp_Point)
        Special Effect - Destroy (Last created special effect)
        Set Temp_Point = (Center of FirstEmpireStart <gen>)
        Unit - Move (Triggering unit) instantly to Temp_Point
        Camera - Pan camera for (Owner of (Triggering unit)) to Temp_Point over 0.00 seconds
        Special Effect - Create a special effect at Temp_Point using Abilities\Spells\Human\MassTeleport\MassTeleportCaster.mdl
        Custom script:   call RemoveLocation (udg_Temp_Point)
        Special Effect - Destroy (Last created special effect)
 

mordocai

New Member
Reaction score
17
...¬¬ close enough, im tired and dont have wc3 but thats what i thought it was. Ayways he got my drift
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top