I have Hero unit that will have an ability called "Restore building"
I have have a building unit that look like a pile of trash and is flagged indestructible.
When the hero cast this ability on that building then i want the ability to apply a timer on 30 seconds and when the timer is up then i want to instantly kill this unit (pile of trash). THIS is what i need help with, how do i do it?
When the unit die i can easy replace it to the correct unit with triggers. but if its possible to do without triggers then please tell me how :)
Well I believe there is an ability called "attack invulnerable". Maybe look at that and see how it works? But the ability would be type "effect- target". Then all it would do is apply an effect of type "apply behavior". That behavior would be a buff with a 30 second duration. The end effect for that buff will be a damage effect that deals 999 damage or something, which should instantly kill any unit. But I'm not sure if it would work on invulnerable units.
Rollback Post to RevisionRollBack
Feel free to Send me a PM if you have any questions/concerns!
I have Hero unit that will have an ability called "Restore building"
I have have a building unit that look like a pile of trash and is flagged indestructible.
When the hero cast this ability on that building then i want the ability to apply a timer on 30 seconds and when the timer is up then i want to instantly kill this unit (pile of trash). THIS is what i need help with, how do i do it?
When the unit die i can easy replace it to the correct unit with triggers. but if its possible to do without triggers then please tell me how :)
Well I believe there is an ability called "attack invulnerable". Maybe look at that and see how it works? But the ability would be type "effect- target". Then all it would do is apply an effect of type "apply behavior". That behavior would be a buff with a 30 second duration. The end effect for that buff will be a damage effect that deals 999 damage or something, which should instantly kill any unit. But I'm not sure if it would work on invulnerable units.
How about a buff then on a invulnerable and then remove that unit with a trigger?
It worked as you said, it was possible to dmg that and kill it.