I have a trigger that make my dead units revive after some seconds. It's depends in what level the unit is. So it is working with all my heros, but if they are burrowed, it don't work. The icon in the right of the screen apears, but I can't control the unit, I can't even see my unit. It's do not revive. I've put behaviors and abilities same as the unborrowed units, but still don't work.
Any ideas about what is happening??
I'm not sure if it's a glitch or what, but you could try putting a death prevention behavior on the burrowed form of the unit and force it to unburrow when it takes fatal damage instead of dying. Once it's unburrowed you can kill it and the normal revive stuff should happen.
Very thanks Sir,
I've used your idea. I had to modify some part of the Death Prevention Behavior, because it didn't need to spend the time and the effects of this behavior. I used only the effect that make the unit keep some percents of life. Then ordered the unit to unburrow. I had to put "any unit take damage, fatal or not" (Because the prevention behavior makes fatal damage impossible).
I put something like:
Trigger
Events
Unit - Any unit suffer damage fatal or not fatal
Condictions
((Triggering Unit) Life (Actual)) <= 65.0
((Triggering Unit) of (Triggering Unit)) is Hero) == true
((Triggering Unit) has Valerian02a - Hero Death Prevention Burrowed) == true
Actions
Unit - Order (Triggering Unit) to (Infestador - Unburrow) (Overall existing orders)
Unit - Order (Triggering Unit) to (Hidraliska - Unburrow) (Overall existing orders)
The enemies do the rest!!! :):D
My only fear is with the condictions, about the amount of life that makes de unit unburrow, I fear to get some bugs. But I will know it only when I make the map public. Someday in future, hehe.
Anyway, I'm glad because my burrowed heros can die...And revive!!!
Sorry for the traduction of the triggers, my Editor is in portuguese. ;)
Well, as I was afraid. The trigger things can get some bug. If the condictions of the death are too "intense", it can be bugged and do not have time to unburrow the unit before it dies. Buuuuuuuuuuut...
I've found a way via data. There is two events inside the unit actor. Called birth and revive. The zerg units has two birth events (Burrowed and unburrowed).
But has only one revive event (not burrow). To make works, has to add another revive event. (So when the unit revives it will create the animation for the unit).
(This second event you should copy from unitbirth event and then change to revive event...It will make the animation be played as burrow when the unit revives).
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I have a trigger that make my dead units revive after some seconds. It's depends in what level the unit is. So it is working with all my heros, but if they are burrowed, it don't work. The icon in the right of the screen apears, but I can't control the unit, I can't even see my unit. It's do not revive. I've put behaviors and abilities same as the unborrowed units, but still don't work. Any ideas about what is happening??
I'm not sure if it's a glitch or what, but you could try putting a death prevention behavior on the burrowed form of the unit and force it to unburrow when it takes fatal damage instead of dying. Once it's unburrowed you can kill it and the normal revive stuff should happen.
Very thanks Sir, I've used your idea. I had to modify some part of the Death Prevention Behavior, because it didn't need to spend the time and the effects of this behavior. I used only the effect that make the unit keep some percents of life. Then ordered the unit to unburrow. I had to put "any unit take damage, fatal or not" (Because the prevention behavior makes fatal damage impossible). I put something like:
Trigger
The enemies do the rest!!! :) :D
My only fear is with the condictions, about the amount of life that makes de unit unburrow, I fear to get some bugs. But I will know it only when I make the map public. Someday in future, hehe.
Anyway, I'm glad because my burrowed heros can die...And revive!!!
Sorry for the traduction of the triggers, my Editor is in portuguese. ;)
Hasta la vista.
Well, as I was afraid. The trigger things can get some bug. If the condictions of the death are too "intense", it can be bugged and do not have time to unburrow the unit before it dies. Buuuuuuuuuuut... I've found a way via data. There is two events inside the unit actor. Called birth and revive. The zerg units has two birth events (Burrowed and unburrowed). But has only one revive event (not burrow). To make works, has to add another revive event. (So when the unit revives it will create the animation for the unit).
To work correctly:
and:
(This second event you should copy from unitbirth event and then change to revive event...It will make the animation be played as burrow when the unit revives).