- Joined
- Mar 5, 2011
- Messages
- 28
Like the tittle says, i cant sleep again, cuz i have a question. How can i put a death animation (like the naga explosion of water)? If it helps, i got magos model editor.
Just do this:
I'm using this on my project, so I think it could work for you. Good luck!
Building Death Animation
Events
Unit - Building 0001 <gen> Dies
Conditions
Actions
Set Temp_Point = (Position of (Triggering unit))
Special Effect - Create a special effect at Temp_Point using Objects\Spawnmodels\Naga\NagaDeath\NagaDeath.mdl
Wait 2.00 seconds
Special Effect - Destroy (Last created special effect)
Custom script: call RemoveLocation (udg_Temp_Point)
The special effect must be destroyed because if not it leaks. And I added the wait function to give the animation time to birth, disappear and then to be destroyed. If not, the animation wouldn't even have time to birth.
Trying to act smart ?
Haha, try to create SFX and destroy it, NO WAIT BORDER IS USED
You'll see what Garfield meant![]()
Make the units explode on death and customize their explosion animation. This is far less leaky than special effects (if it works).