This system works very much like phoenix fire in that the hero can run around freely while shooting projectiles while moving. However, I want to change it in two ways:
-the hero "attacks" (right-clicks) a unit and the triggered phoenix fire only hits that unit.
-the projectiles are triggered so that they can miss thier target.
I can do the projectile part but what i cant figure out is how to pull it all together and make it act like phoenix fire.
I was thinking of making it into 3 parts:
-Trigger one- would activate when the hero attacks a unit. the attacked unit is stored into a variable (z).
-Trigger two- checks every x amount of time if the target (z) is within x range of the hero. If it is, if fires trigger three.
-Trigger three-fires the projectile.
Is this a proper/efficient way of doing this? thank you in advance for all your help!
-the hero "attacks" (right-clicks) a unit and the triggered phoenix fire only hits that unit.
-the projectiles are triggered so that they can miss thier target.
I can do the projectile part but what i cant figure out is how to pull it all together and make it act like phoenix fire.
I was thinking of making it into 3 parts:
-Trigger one- would activate when the hero attacks a unit. the attacked unit is stored into a variable (z).
-Trigger two- checks every x amount of time if the target (z) is within x range of the hero. If it is, if fires trigger three.
-Trigger three-fires the projectile.
Is this a proper/efficient way of doing this? thank you in advance for all your help!