• 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.

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,573
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