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

If unit from UnitType dies -> remove corps

Status
Not open for further replies.
Level 2
Joined
Oct 9, 2004
Messages
5
Hello,
on the moment i'm building a map with several custom units who all have custom models. But i have a problem with one of them. If the unit dies, the model does not dissappear. Now i was wondering if anyone knew a way to build a script or something else that checks if a unit from a certain UnitType dies and then removes the corps of it. Thanks in advance
greetz,
Venom
 
Level 22
Joined
May 11, 2004
Messages
2,863
That will not work. There`s a problem with referencing triggers to units that are already dead. Maybe you can try this: When you spawn a unit using a trigger, add too the tigger actions ``Unit- make (last created unit) explode upon death.`` That way the unit will simply explode as if they had been bit by seige weaponry and not leave a corpse.
-VGsatomi
 
Status
Not open for further replies.
Top