• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Doodad Death Error

Status
Not open for further replies.
Level 2
Joined
Aug 1, 2012
Messages
40
I'm working on a map for the latest Mini-Mapping Contest, and I was using the DK2CarvedWall model for a destructible doodad. The problem, however, is when the doodad is destroyed; the death animation plays, and units can move through it as normal, but when the death animation ends the model reverts to the stand animation, only lowered about halfway to the ground. I don't know what causes this problem; is it something in the doodad properties, or with the model itself? How can I go about fixing it?
Thanks for any help!
 
Level 25
Joined
Jun 5, 2008
Messages
2,572
Remove the destructable from the game after a few seconds.
Doodads can't be killed.

It can be done easy with a trigger, just put this into a trigger with Event - A destructible dies with the proper condition:
  • custom script: local destructable d = GetTriggerDestructable()
  • Wait X seconds
  • custom script: call SetWidgetLife(d, 1.0)
  • custom script: call RemoveDestructable(d)
  • custom script: set d = null
I have no access to WE atm so there might be syntax errors.
 
Status
Not open for further replies.
Top