Grumpy Old Man 3551 Posted December 20, 2013 Hey folks, is there any way to check if units are next to trees or inside a forest? since trees have no class I'm wondering if this is even possible. Cheers 1 Share this post Link to post Share on other sites
Rydygier 1330 Posted December 20, 2013 There is very nice command: selectBestPlaces better explanation for VBS counterpart: selectBestPlaces (VBS) 1 Share this post Link to post Share on other sites
Grumpy Old Man 3551 Posted December 20, 2013 So I could use this to return positions of nearby trees/forests and then check if the unit is close to either one? That's great, thanks! Share this post Link to post Share on other sites
Rydygier 1330 Posted December 20, 2013 Or just use this command for unit's position and very small radius to see, if will return any position with value greater than 0. If so - unit is near trees/forest/whatever. Share this post Link to post Share on other sites
Grumpy Old Man 3551 Posted December 20, 2013 This is working extremely well, thank you for that! Share this post Link to post Share on other sites