Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.

Or use something like this:
JASS:function IsPointWater takes real x, real y returns boolean return not(IsTerrainPathable(x, y, PATHING_TYPE_FLOATABILITY)) endfunction
I just... have to nit pick.regions are only square...
rects are only rectangular. regions are collections of rects.Or use something like this:
JASS:function IsPointWater takes real x, real y returns boolean return not(IsTerrainPathable(x, y, PATHING_TYPE_FLOATABILITY)) endfunction
SetTerrainPathable() or IsTerrainPathable() or both where the boolean value representing pathability reversed? Or am I going completely senile?Well... i actually would used that one, but i asked if that checks for shallow water too (since amphibious units doesnt swim at shallow water)? if it does, i will use it, bcause its the best way to do it.PurplePoot said:The pathing check works best, especially since it allows you to still have various water levels, but I guess whatever works for you.
That was the 1st idea, but i'm actually using all the tileset for my map.banlord said:Just a suggestion, why not a special tile for your water? The game can check tiles.
It does, as boats can float in shallow water.Well... i actually would used that one, but i asked if that checks for shallow water too (since amphibious units doesnt swim at shallow water)? if it does, i will use it, bcause its the best way to do it.
