Why is this trigger leaking

romanandre

New Member
Reaction score
2
The longer its lasts the more reduces its frames per seconds, the effects are the same on the begging as is on the end.


Trigger:
  • Jaina Ult Arcane
    • Events
      • Time - Every 0.02 seconds of game time
    • Conditions
    • Actions
      • -------- Frost --------
      • Set JainaLoc123 = (Position of FrostOrb)
      • Set JainaReal[1] = (JainaReal[1] + 10.00)
      • Set JainaReal[2] = (JainaReal[2] + 5.00)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • JainaReal[2] Greater than or equal to 300.00
        • Then - Actions
          • Set JainaReal[2] = 0.00
        • Else - Actions
      • Unit - Create 1 Dummy Caster for Player 1 (Red) at (JainaUltTgt offset by (300.00 - JainaReal[2]) towards JainaReal[1] degrees) facing Default building facing degrees
      • Unit - Add a 0.10 second Generic expiration timer to (Last created unit)
      • Animation - Change (Last created unit)'s size to (55.00%, 55.00%, 55.00%) of its original size
      • Special Effect - Create a special effect attached to the origin of (Last created unit) using Abilities\Spells\Other\CrushingWave\CrushingWaveDamage.mdl
      • Special Effect - Destroy (Last created special effect)
      • -------- Fire --------
      • Set JainaReal[3] = (JainaReal[3] + 10.00)
      • Set JainaReal[4] = (JainaReal[4] + 5.00)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • JainaReal[4] Greater than or equal to 300.00
        • Then - Actions
          • Set JainaReal[4] = 0.00
        • Else - Actions
      • Unit - Create 1 Dummy Caster for Player 1 (Red) at (JainaUltTgt offset by (300.00 - JainaReal[4]) towards (120.00 + JainaReal[3]) degrees) facing Default building facing degrees
      • Unit - Add a 0.10 second Generic expiration timer to (Last created unit)
      • Animation - Change (Last created unit)'s size to (100.00%, 100.00%, 100.00%) of its original size
      • Special Effect - Create a special effect attached to the origin of (Last created unit) using Abilities\Spells\Other\CrushingWave\CrushingWaveDamage.mdl
      • Special Effect - Destroy (Last created special effect)
      • -------- Arcane --------
      • Set JainaReal[5] = (JainaReal[5] + 10.00)
      • Set JainaReal[6] = (JainaReal[6] + 5.00)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • JainaReal[6] Greater than or equal to 300.00
        • Then - Actions
          • Set JainaReal[6] = 0.00
        • Else - Actions
      • Unit - Create 1 Dummy Caster for Player 1 (Red) at (JainaUltTgt offset by (300.00 - JainaReal[6]) towards (240.00 + JainaReal[5]) degrees) facing Default building facing degrees
      • Unit - Add a 0.10 second Generic expiration timer to (Last created unit)
      • Special Effect - Create a special effect attached to the origin of (Last created unit) using Abilities\Spells\Other\CrushingWave\CrushingWaveDamage.mdl
      • Animation - Change (Last created unit)'s size to (60.00%, 60.00%, 60.00%) of its original size
      • Special Effect - Destroy (Last created special effect)
      • Custom script: call RemoveLocation(udg_JainaLoc123)
 

inevit4ble

Well-Known Member
Reaction score
38
Your Dummy Caster is being created at "(JainaUltTgt offset by (300.00 - JainaReal[6]) towards (240.00 + JainaReal[5]) degrees)"

Rather:
Set MyUnitPosition = (JainaUltTgt offset by (300.00 - JainaReal[6]) towards (240.00 + JainaReal[5]) degrees)
And Create Dummy at MyUnitPosition

And I think your special effects are fine, not sure if you HAVE to set them to variable or not.
 

vypur85

Hibernate
Reaction score
803
Seriously, creating 150 units per second truly hurt the performance of the computer regardless of leak or not.
Even if the unit is dead, it doesn't get removed immediately. I'd suggest you to remove the units after death, if you haven't done it already.
Code:
Event
 A unit dies
Condition
 Unit type of (Triggering unit) Equal to Dummy Caster
Actions
 Unit - Remove (Triggering unit)

> not sure if you HAVE
No.
 

WolfieeifloW

WEHZ Helper
Reaction score
372
Use 0.03 instead; 0.03125 is the, pretty much, the minimum you will ever need.
0.03125 is 32 frames per second, which is smooth enough for any normal human being.
 
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