• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

How do i

Status
Not open for further replies.
Level 7
Joined
Jul 11, 2008
Messages
104
Give something a death animation?

I created a building and used a doodad as its model, but when it dies it just stays there for about 10 seconds then dissapears, how do I give it a death animation?
 
Level 6
Joined
Apr 8, 2009
Messages
131
Open Object editor and select your building and chose:

namnlsntw.jpg
 
Level 13
Joined
Mar 4, 2009
Messages
1,156
Give something a death animation?

I created a building and used a doodad as its model, but when it dies it just stays there for about 10 seconds then dissapears, how do I give it a death animation?

hold shit + enter (on art model file) and you will get the code for special effect you want

EVENT-unit dies
CONDITION-dying unit equal to (your unit)
ACTION-
set POINT = position of dying unit
create (any special effect you want) at POINT
destroy (last created special effect)
call RemoveLocation(udg_POINT)
 
Level 6
Joined
Mar 22, 2009
Messages
276
does it play its death animation after doing that?
if not try adding this trigger on its death.
  • Events
  • Unit - A unit Dies
  • Conditions
  • (Unit-type of (Triggering unit)) equal to YOURDESIREDUNIT
  • Actions
  • Animation - Play Unit's death animation
i think the one that irritates you is the corpse of that dying unit.
maybe this trigger could help
  • Wait 2.00 seconds
  • Unit - Remove (Decaying unit) from the game
 
Status
Not open for further replies.
Top