I have a weapon that charges for a couple of seconds and then fires at it's target. However if that target unit dies before the projectile is launched, the weapon cancels it's attack.
Is there any way to make a weapon that keeps firing at the point where it's target unit was standing, even if that unit dies?
If I toggle on the legacy option "uninterruptable", it looks as though the attack animation still plays out, but the effect chain seems to get destroyed.
There are two methods. The first is you use a Create Persistant effect at the caster unit/point that on expire launches your attack. The second is to crearte a dummy unit that is then issue ordered to do the attack
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
Okay I think I have this sorted, just needed to rework the way I was doing it.
Basically I was using a 1.8 second damage point because of the delay in the firing animation, this is why uninteruptable looked like it would be useful. When you don't have the damage point it does cancel the animation.
Changed it so the weapon attack is essentially instant, and controlled the rest with the persistent effects.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I have a weapon that charges for a couple of seconds and then fires at it's target. However if that target unit dies before the projectile is launched, the weapon cancels it's attack.
Is there any way to make a weapon that keeps firing at the point where it's target unit was standing, even if that unit dies?
If I toggle on the legacy option "uninterruptable", it looks as though the attack animation still plays out, but the effect chain seems to get destroyed.
@KratsAU: Go
well im not expert , but when you want it to stop should it not be `` Interruptable`` and NOT `` UNinterruptable`` ??
I don't want it to stop, that's what it does by default - hence why I turned on uninteruptable ;)
There are two methods. The first is you use a Create Persistant effect at the caster unit/point that on expire launches your attack. The second is to crearte a dummy unit that is then issue ordered to do the attack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
Yeah I am already doing create persistents
The weapon effect chain is something like
Initial Set > Create persistent > Do stuff
I am using a 1.8 second backswing, maybe the backswing get's cancelled if the target dies?
Okay I think I have this sorted, just needed to rework the way I was doing it.
Basically I was using a 1.8 second damage point because of the delay in the firing animation, this is why uninteruptable looked like it would be useful. When you don't have the damage point it does cancel the animation.
Changed it so the weapon attack is essentially instant, and controlled the rest with the persistent effects.