I currently have an effect - target ability(that targets a unit) with a persistent effect that handles the beam. The beam shows up fine and I've created the actors so that the beam is removed it the unit moves. However if the unit(while standing at the same point) uses the ability at a new unit, the old beam is still there. I can't figure out how to remove it.
If the beam is handled by a persistent, I usually use events like this:
Effect.X.Start
-> At Target
Create
Effect.X.Stop
-> At Target
-> FromEffectTreeDescendant
Destroy
This way, the beam always vanishes, as soon as the persistent stops. The FromEffectTreeDescendant makes sure, only the beam, which was created by this particular persistent effect gets destroyed.
It seems like the persistent is still running on the old target. I want my persistent to run until the caster moves or casts it at another target so the persistent has a very high amount of periods. It already stops when it moves. I fixed that with a movement speed validator but I don't know how to make it only run the persistent on one target at a time.
I currently have an effect - target ability(that targets a unit) with a persistent effect that handles the beam. The beam shows up fine and I've created the actors so that the beam is removed it the unit moves. However if the unit(while standing at the same point) uses the ability at a new unit, the old beam is still there. I can't figure out how to remove it.
Any ideas?
If the beam is handled by a persistent, I usually use events like this:
-> At Target
-> At Target
-> FromEffectTreeDescendant
This way, the beam always vanishes, as soon as the persistent stops. The FromEffectTreeDescendant makes sure, only the beam, which was created by this particular persistent effect gets destroyed.
It seems like the persistent is still running on the old target. I want my persistent to run until the caster moves or casts it at another target so the persistent has a very high amount of periods. It already stops when it moves. I fixed that with a movement speed validator but I don't know how to make it only run the persistent on one target at a time.
Flag the persistent as Channeled
Works great! Thanks. I already tried "Channeling" but that just messed things up.