- Joined
- Mar 29, 2012
- Messages
- 542
I have a system that scans for neutral hostile groups over the map, the first group is 3500 distance away (reachable by a Blood Mage hero) and second group is just 2000 distance away but the Blood Mage needs to circle around the island coast to get there.
So I want the system to return the closest group (by on-foot travel duration).
What I really need here is how to get the duration a unit need to travel to a certain point.
My current idea is:
Create a dummy that has the maximum possible movement speed and order it to go to the target point and calculate how long it travel. (a delay before the result though, but I don't mind if there is no better idea)
What do you think?
So I want the system to return the closest group (by on-foot travel duration).
What I really need here is how to get the duration a unit need to travel to a certain point.
My current idea is:
Create a dummy that has the maximum possible movement speed and order it to go to the target point and calculate how long it travel. (a delay before the result though, but I don't mind if there is no better idea)
What do you think?