GridReclaim Utility function request - FilterAndSortInRadiusWeighted
- Dominant language
- Lua
- Stars
- 264
- Forks
- 260
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 21
Description
**Describe the feature**
Allow reclaim grid to take pathing distance into account for engineers.
Currently an engineer can get a reclaim grid using FilterAndSortInRadius but it does not taking pathing distance into account from an engineers position.
I would also like this to be introduced in a new utility function that will perform a weighted return table based on value and distance rather than purely value.
I would also like to be able to leverage the GridPresence data structure to be able to assign an optional parameter to keep the table returned within allied cells.
**Screenshots**

**Additional context**
There are some maps where a grid cell can be close to a base but in actuality the travel time for an engineer is much further than other cells. This feature would resolve the selection issue with this problem.
Contributor guide
Assessment
This issue has not been assessed yet.