Something that make the user move towards the target and the effect happens when the caster hits the target.
My spell goes like this
"The Hero Charge toward a target unit, when hit, Damage is delt and stun"
I created a dummy skill from Storm Bolt that will be cast when the hit is detected
The problem is my Charge trigger
which I use
-Every 0.01 seconds
-Move (Caster) to position of (Caster) with offset 10 and angle from position of (Caster) to position of (Target)
-Set Variable = ChargeRange = (Distance between position of (Caster) to position of (Target))
-If/then/else condition
- If ChargeRange = Less than or equal to 100
- <Creates a dummy and cast storm bolt/ Stop Charge>
----------
The charge fails however and the hero slip right through the target and crash onto the wall, The Hero is also invulnerable, has it collision turn off, and is pause for the rest of its lifespan
I suspect that the Hit isn't detect, so I try increasing the Hit detection Range from 100 because 100 seems too small, but it fail and the hero still fails to ram onto the right target and crash onto the sides of the map.
Is there an alternative way to this?
My spell goes like this
"The Hero Charge toward a target unit, when hit, Damage is delt and stun"
I created a dummy skill from Storm Bolt that will be cast when the hit is detected
The problem is my Charge trigger
which I use
-Every 0.01 seconds
-Move (Caster) to position of (Caster) with offset 10 and angle from position of (Caster) to position of (Target)
-Set Variable = ChargeRange = (Distance between position of (Caster) to position of (Target))
-If/then/else condition
- If ChargeRange = Less than or equal to 100
- <Creates a dummy and cast storm bolt/ Stop Charge>
----------
The charge fails however and the hero slip right through the target and crash onto the wall, The Hero is also invulnerable, has it collision turn off, and is pause for the rest of its lifespan
I suspect that the Hit isn't detect, so I try increasing the Hit detection Range from 100 because 100 seems too small, but it fail and the hero still fails to ram onto the right target and crash onto the sides of the map.
Is there an alternative way to this?