• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Special Effects Destruction on death?

Status
Not open for further replies.
Level 11
Joined
Nov 15, 2007
Messages
800
Not when they die, but when the corpse completely decays and the unit counts as "removed", then all special effects attachments will be removed as well I believe. Still better to manually remove anything you don't need permanently.
 
Level 14
Joined
Mar 27, 2008
Messages
1,003
This is just a quick question: if i attach a special effect to a unit, will the SFX count as destroyed when the unit dies?

It depends on the special effect.
Some special effects will destroy on death, some wont.

To destroy a special effect that normally WONT dissapear.

When its created you need to have a variable setting it to that paticular effect. Then when the unit dies, create a trigger That when the unit dies destroys (whatever variable you set it too) PM me if you need more help. I will post a screenshot if you want
 
Level 9
Joined
Feb 19, 2006
Messages
115
If you're talking about memory leaks, then no, the effect will still be there in memory, even if you can't see it. You must remove it with the "DestroyEffect" function

If you're talking about the pretty effect model, yes, it'll go away when the model is removed. You can make it stay by using "Create special effect at point" instead of "... on unit".
 
Status
Not open for further replies.
Top