Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
Grumpy Old Man

Check if unit is next to trees

Recommended Posts

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

  • Thanks 1

Share this post


Link to post
Share on other sites

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

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
Sign in to follow this  

×