ok heres the deal, i got perdition turret that can be borrowed, and what i want to do, when this turrent got killed i don't want to play actual animation of death, i want this turret to get borrowed, and be selectable as alive unit, also get revived after a while, so you killed turret it got borrowed and show you a channeling bar, and in like 30 seconds hey-ho my turret is alive again, how to get this done?
<<quote 2507303>>
ok heres the deal, i got perdition turret that can be borrowed, and what i want to do, when this turrent got killed i don't want to play actual animation of death, i want this turret to get borrowed, and be selectable as alive unit, also get revived after a while, so you killed turret it got borrowed and show you a channeling bar, and in like 30 seconds hey-ho my turret is alive again, how to get this done?
<</quote>>
1st off its either dead or not. there is no such thing as a dead selectable unit.
The best i can come up with is make a behavior that prevents the unit from dying. Death chance -0-
Field (name) Death
Combat: Chance 0
then disable weapon on the turret because the natural state of it is burrowed.
then set a Durration on how long you want it innactive/burrowed.
Your going to have to set the flags on it to untargetable or else enemy units will sit there and fire away at it and not pass by, if thats what you want.
What you should look at is something like the Thor's Immortality Protocol in the Campaign files. Or Torrasque Ultralisk.
In short there are 2 parts to that ability.
First of all there is a morph ability for the Thor that instantly transforms it into the Thor Wreckage. It is not bound to any key, but trust me, it is there.
The second part is a behavior that will trigger once the Thor takes fatal damage. It will multiply that damage with 0 and then proceed to have the Thor use this morph ability to instantly become a wreckage.
You will want something similar. The Turrets won't actually die, they will just cast a morph when they were supposed to die.
That morphs them into a second unit "Borrowed Turret" which got a behavior on birth to cast a morph of its own that transform it back into a "live turret" once the timer expires.
Of course you will also need to set up a lot of actors properly for this. It is pretty high level stuff, so I hope you got an idea on what you are doing.
shit im stupid, I'm done it with prevent death behavior, iv just added set of effect that adds behavior that actually disables ability to unburrow and weapons so turret can't even detect anyone
ok heres the deal, i got perdition turret that can be borrowed, and what i want to do, when this turrent got killed i don't want to play actual animation of death, i want this turret to get borrowed, and be selectable as alive unit, also get revived after a while, so you killed turret it got borrowed and show you a channeling bar, and in like 30 seconds hey-ho my turret is alive again, how to get this done?
btw im interested in one more thing, is there anyway to avoid unit training interruption when owner of a trainer building changes?
<<quote 2507303>>
ok heres the deal, i got perdition turret that can be borrowed, and what i want to do, when this turrent got killed i don't want to play actual animation of death, i want this turret to get borrowed, and be selectable as alive unit, also get revived after a while, so you killed turret it got borrowed and show you a channeling bar, and in like 30 seconds hey-ho my turret is alive again, how to get this done?
<</quote>>
1st off its either dead or not. there is no such thing as a dead selectable unit.
The best i can come up with is make a behavior that prevents the unit from dying. Death chance -0-
Field (name) Death
Combat: Chance 0
then disable weapon on the turret because the natural state of it is burrowed.
then set a Durration on how long you want it innactive/burrowed.
Your going to have to set the flags on it to untargetable or else enemy units will sit there and fire away at it and not pass by, if thats what you want.
@SC2UniversalDomination: Go
can u give me an example script please? I'm bad about understanding things
show me eny example of how i can get this done please
Check out the prevent death behavior in the HoTS campaign dependencies.
@MaskedImposter: Go
thx alot man
i don't know how to get this done with this buff =(
@uroboros1987: Go
What you should look at is something like the Thor's Immortality Protocol in the Campaign files. Or Torrasque Ultralisk.
In short there are 2 parts to that ability.
First of all there is a morph ability for the Thor that instantly transforms it into the Thor Wreckage. It is not bound to any key, but trust me, it is there.
The second part is a behavior that will trigger once the Thor takes fatal damage. It will multiply that damage with 0 and then proceed to have the Thor use this morph ability to instantly become a wreckage.
You will want something similar. The Turrets won't actually die, they will just cast a morph when they were supposed to die.
That morphs them into a second unit "Borrowed Turret" which got a behavior on birth to cast a morph of its own that transform it back into a "live turret" once the timer expires.
Of course you will also need to set up a lot of actors properly for this. It is pretty high level stuff, so I hope you got an idea on what you are doing.
shit im stupid, I'm done it with prevent death behavior, iv just added set of effect that adds behavior that actually disables ability to unburrow and weapons so turret can't even detect anyone
ty guys now my map is almost ready, its all becuz of your help