• 🏆 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!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!

When a unit dies, a new unit is spawned from it?

Status
Not open for further replies.
Level 10
Joined
Nov 5, 2008
Messages
536
I have changed the brood lords attack. It shoots a normal missile. When it hits the enemy, they get a buff that lasts 15 seconds. If that unit dies during 15 seconds, broodlings are spawned from it. If the unit lives longer than the 15 seconds of the buff, the buff is just removed.

I can´t add the "spawn broodlings - effect" to the behaviours "effect - final" slot, since it makes them spawn even if the behaviour is removed.

Any thoughts on how to make this work?

(If a unit with a buff dies, a enemy unit is spawned from it)
 
Last edited:
Level 9
Joined
Dec 21, 2006
Messages
490
Add a behavior on every unit that shall spawn a unit on death. every buff has a trigger for death events within modifications - fight : reaction on death, you can even validate the deathtype with a custom validator inside the triggered effect.
 
Status
Not open for further replies.
Top