is it possible to get the target unit from the attack ability to use this target for a effect: instant?
Or is there another way to cast a instant effect not on the caster but on a other unit?
u can create "global variable - unit" and set it each time any unit is highlighterd and set it to no unit when no unit is highlighted then u can create instant effect dummy and effect target ability, then u make trigger that proc than u use instant dummy effect and order ur unit to use target effect to highlighted unit variable, and also u can reset cooldown on ability if variable value is - no unit and do error message like NO TARGET, same with range
and if u want to get target from attack ability just set this unit variable to unit is attacked
Sorry for that late answer. Thank you for your help. I tested both ways and i decided me for the trigger way. With a search area effect i dont know how i can get always the last attacked target. Sometimes the skill is targeting a wrong unit in the same range.
With a trigger it works how it should be.
You can play around with things. I don't know what kind of ability it is. However things like the launch missile effect you can tell it to activate an effect at the start and impact of the launched missile, you could simply make the effect start at the beginning of the missile and target your wanted target instead of source.
Adding on to this, you could give the unit a secondary disabled weapon and have the instant ability disable the primary and enable the secondary, and reset the cooldown the of the secondary. Make sure to swap the weapons at the end of the secondary attack effect.
Thanks for all your help. I read every of your answers but i have currently not enough time to answer more exact. But i dont forgot this thread :) I come back tomorrow or overmorrow.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hello,
is it possible to get the target unit from the attack ability to use this target for a effect: instant? Or is there another way to cast a instant effect not on the caster but on a other unit?
let the first effect be an search area (enum area) effect.
u can create "global variable - unit" and set it each time any unit is highlighterd and set it to no unit when no unit is highlighted then u can create instant effect dummy and effect target ability, then u make trigger that proc than u use instant dummy effect and order ur unit to use target effect to highlighted unit variable, and also u can reset cooldown on ability if variable value is - no unit and do error message like NO TARGET, same with range
and if u want to get target from attack ability just set this unit variable to unit is attacked
Sorry for that late answer. Thank you for your help. I tested both ways and i decided me for the trigger way. With a search area effect i dont know how i can get always the last attacked target. Sometimes the skill is targeting a wrong unit in the same range. With a trigger it works how it should be.
You can play around with things. I don't know what kind of ability it is. However things like the launch missile effect you can tell it to activate an effect at the start and impact of the launched missile, you could simply make the effect start at the beginning of the missile and target your wanted target instead of source.
New to the Editor? Need a tutorial? Click Here
Want data assets? Click Here
You can use an Augment type of ability, check the Zealot's Charge.
@SoulFilcher: Go
Adding on to this, you could give the unit a secondary disabled weapon and have the instant ability disable the primary and enable the secondary, and reset the cooldown the of the secondary. Make sure to swap the weapons at the end of the secondary attack effect.
@PirateArcade | I make games | Ask me things on Discord
Thanks for all your help. I read every of your answers but i have currently not enough time to answer more exact. But i dont forgot this thread :) I come back tomorrow or overmorrow.