So I'm wondering, is it possible to detect the amount traveled by a unit, and if so, to what extent is it possible to interact with the detected value?
For example, I think I remember in DotA, there was an ability that dealt increased damage if the projectile struck further away from its initial point. I'm not looking for exactly that, I need something less linear.
I'm looking for something that works if a unit moves to a location around an object, anything that would work - not with distance from point A to point B, but the actual distance traveled.
I thought of a possible alternative as well, if it would be possible to just time the units as they move. The situation where I need the mechanic would feature units with the same movement speed and each unit individually, so timing is also a possibility.
Also, a second alternative could use dummy units and proximity for detecting the distance traveled but when creating an event trigger, strings such as "position of unit" only work for the initial positions of units the instant the map initializes.
I'm quite familiar with the trigger editor, but I haven't got the slightest amount of skill with the custom scripts, so if there's a way around it using some sort of script It'd make me a very happy possum ^^
Thanks in advance!
For example, I think I remember in DotA, there was an ability that dealt increased damage if the projectile struck further away from its initial point. I'm not looking for exactly that, I need something less linear.
I'm looking for something that works if a unit moves to a location around an object, anything that would work - not with distance from point A to point B, but the actual distance traveled.
I thought of a possible alternative as well, if it would be possible to just time the units as they move. The situation where I need the mechanic would feature units with the same movement speed and each unit individually, so timing is also a possibility.
Also, a second alternative could use dummy units and proximity for detecting the distance traveled but when creating an event trigger, strings such as "position of unit" only work for the initial positions of units the instant the map initializes.
I'm quite familiar with the trigger editor, but I haven't got the slightest amount of skill with the custom scripts, so if there's a way around it using some sort of script It'd make me a very happy possum ^^
Thanks in advance!