So here is a Test Map with the results:
______
Oh and it seems that the minimum Distance required towards a Gold Mine for any unit with the ability "Return Gold" or/and "Return Gold and Lumber" is measured from the Closest Edge from the Unit to the closest Edge from the Gold Mine. The center of the Main Buildings can be as close as 768.015 towards the center of the Gold Mine. Smaller Buildings like the Lumber Mill, or the Slaughterhouse can be build a tiny bit closer.
______
Type in '1' into the chat box to measure the distance from the selected unit to the goldmine in the center of the map.
Type in '2' into the chat box to measure the distance from the selected unit to the other Kel'Thuzad. (Kel'Thuzad can fly)
The Necropolis, that the Acolyte can build, is the 'normal' unit, with the Return Gold and Lumber ability, however it can be build next to the Goldmine. The Necropolis, that the Blood-elf Engineer can build, which is an exact copy of the original Necropolis can't be build within the minimum distance towards the Gold Mine.
The original Slaughterhouse with Return Gold and Lumber ability can't be build closer than the minimum distance towards the Gold Mine as well.
The Lumber-mill with Return Gold can't be build within the minimum distance of the Goldmine as well.
__________
well this isn't mush of a problem but this is:
http://www.hiveworkshop.com/forums/...rn-gold-return-gold-lumber-doent-work-258757/
See i am kinda making an advanced melee map, with a lot of new features. One of them is that you can buy financial aid (gold crates) at your main building and bring them over to your ally
(the normal trading is disabled), so if you can do that, returning raw gold from the gold mine should be given as well. Further more you can hire mercenary gold diggers, allow distant gold mining etc...
So i just need to replace the start building for the undead at game start and the rest is easy...
However the Night Elves are the real problem, since their Tree of Life can uproot and stand directly next to the Goldmine, i know how to check when uproot is complete etc, non the less, the ability "return gold" won't go away, even if entered chat massage "test", selected unit, remove ability, - nothing the ability stays...
So the ability Chaos might solve the problem, but i would really like to know how you could say that for example Huntress Hall, requires either Tree of Life or "the uprooted without return gold Tree of Life"..
And just saying requires any Tier 1 Hall would be kinda an ugly solution imho.