Can't seem to detect water. It just says it's not water. This:
Doesn't work. I try setting a boolean to the value returned by that function and check whether it is true to see if the point was water. Always says it is ground, even if the point was really on water. It is a function included in Vex's Caster System
What I did was ticked off the 'Enforce Water Height Limits', made the places I wanted water to be water, then made them plain again, then used lower to "carve" the river.
Is there another way to detect water?
JASS:
function IsPointWater takes real x, real y returns boolean
return IsTerrainPathable(x,y,PATHING_TYPE_WALKABILITY) and not (IsTerrainPathable(x,y,PATHING_TYPE_AMPHIBIOUSPATHING))
endfunction
Doesn't work. I try setting a boolean to the value returned by that function and check whether it is true to see if the point was water. Always says it is ground, even if the point was really on water. It is a function included in Vex's Caster System
What I did was ticked off the 'Enforce Water Height Limits', made the places I wanted water to be water, then made them plain again, then used lower to "carve" the river.
Is there another way to detect water?