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

Units drop items on death.

Status
Not open for further replies.
Level 3
Joined
Dec 28, 2007
Messages
46
Hmm. I meant if i give a unit a "unit" inventory, is there a way to make it not drop its items when it dies. Hero's wont, but units will i have found. I found a way to make it work with a trigger though. Im dumb for not having thought of it before.

Since the unit has to completely decay, OR simply finish its death animation before it drops its items. Only way I found was to remove unit from game upon death. This works because the animation counts it as still in the game, but already having died.

thanks guys.
 
Level 11
Joined
Aug 25, 2006
Messages
971
Lol he didn't, I misunderstood him, and wrote something stupid. When he corrected me, I deleted my post. Sorry for the confusion
 
Level 10
Joined
May 31, 2007
Messages
645
Well, if units don't drop the items, this will mean the items will be lost. If you want so you can make a trigger that when a unit dies and if it is of the type you want to destroy all the items that are dropped. Make a region center it on the unit when it dies run a trigger destroying all the items in the region and then disable itself and I think this will work. If you want to store the items, then move them to a blank area unreachable by players when the unit dies.
 
Level 19
Joined
Aug 24, 2007
Messages
2,888
first item needs to be able to droped on death
second unit needs to be droping items on death
 
Level 5
Joined
Jan 27, 2007
Messages
154
Hmm. I meant if i give a unit a "unit" inventory, is there a way to make it not drop its items when it dies. Hero's wont, but units will i have found. I found a way to make it work with a trigger though. Im dumb for not having thought of it before.

Since the unit has to completely decay, OR simply finish its death animation before it drops its items. Only way I found was to remove unit from game upon death. This works because the animation counts it as still in the game, but already having died.

thanks guys.

Events:
A unit dies

Condition:
Unit-type of dying unit equals to footman

Action:
Remove last dropped item

If you want is to pawn the item when the unit dies this is it, but if you don't want; you can always save the item to a variable, use this trigger and use another trigger to create the item stored in the variable again.
 
Status
Not open for further replies.
Top