Leakless special effect

Kenny

Back for now.
Reaction score
202
As a side point from what Artificial has already said. If you call DestroyEffect(AddSpecialEffectLoc(path,loc)) it will only show the "birth" or "death" animation of the effect (i forgot which one). So if you are using a special effect and you are wondering why it isnt working, it is probably because the special effect was not made to be instantly destroyed.

So a work around would be like something you already have. Create the effect, the call DestroyEffect() at the end of the spell. And an easier way to do this (so that you dont have to use GetLastCreatedEffect() is to assign the effect to a local variable.

JASS:
set sfx = AddSpecialEffectLoc(path,loc)
// Do some stuff here

// End of spell
// Null locals that need to be nulled etc...
call DestroyEffect(sfx)
 

chobibo

Level 1 Crypt Lord
Reaction score
48
Death animation I think. Also if possible, use X and Y coordinates rather than locations because it doesn't need a handle.
 
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