Will this leak?

XeNiM666

I lurk for pizza
Reaction score
138
I know this is a noob-ish question but if I create a unit, give it an expiration timer and attach an effect to it via AddSpecialEffectTarget, will the effect leak?
 

Akolyt0r

New Member
Reaction score
33
generally yes, it will leak..
you will have to store the effect in some (most likely global) variable and destroy the effect when its not needed anymore ..
Or you use some of the systems which are around for timed effects ...


kingkingyyk3's method wont leak, however it will only show the death animation of the effect for a short time ...
 
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