Tyrulan
Ultra Cool Member
- Reaction score
- 37
I've written a fishing spell - at this point I'm using regions to dictate "castable" areas of water. Is there an easier way on doing this?
native IsTerrainPathable takes real x, real y, pathingtype t returns boolean
// i.e.
if IsTerrainPathable(YourX,YourY,PATHING_TYPE_FLOATABILITY) then
//
endif
//Returns false if the target location is water.
if (IsTerrainPathable(GetLocationX(GetSpellTargetLoc()), GetLocationY(GetSpellTargetLoc()), PATHING_TYPE_FLOATABILITY ) == false) then
return true
else
return false
endif