Greetings,
I would like to make some spells like "empower next attack after travelling a certain distance"
But I dont know how to measure the distance travelled.
I made something like
Trigger 1
every 0.1s
set position 1 = unit's position
run a timer with 0.09s
Trigger 2
timer ends
then
set position 2 = unit's position
calculate the distance between point 2 and point 1
then record the distance
But it somehow does not work, it just infinitely stack up.
I would like to make some spells like "empower next attack after travelling a certain distance"
But I dont know how to measure the distance travelled.
I made something like
Trigger 1
every 0.1s
set position 1 = unit's position
run a timer with 0.09s
Trigger 2
timer ends
then
set position 2 = unit's position
calculate the distance between point 2 and point 1
then record the distance
But it somehow does not work, it just infinitely stack up.