Forums
New posts
Search forums
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Come and join our gamer community by
registering for free here
Other Gaming Forum
PC games
WarCraft III Modding
Detect being on water
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Xeridanus" data-source="post: 127533" data-attributes="member: 5963"><p>Sorry for necromancy, you can kill me later (then i'll become a lich ;P). In Vexorians caster system he has at the end some code for detecting if a point has water there or not. im not sure if it works, i think he has it around the wrong way.</p><p></p><p>[JASS]function IsPointWater takes real x, real y returns boolean</p><p> return IsTerrainPathable(x,y,PATHING_TYPE_WALKABILITY) and not(IsTerrainPathable(x,y,PATHING_TYPE_AMPHIBIOUSPATHING))</p><p>endfunction[/JASS]</p></blockquote><p></p>
[QUOTE="Xeridanus, post: 127533, member: 5963"] Sorry for necromancy, you can kill me later (then i'll become a lich ;P). In Vexorians caster system he has at the end some code for detecting if a point has water there or not. im not sure if it works, i think he has it around the wrong way. [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[/JASS] [/QUOTE]
Verification
Post reply
Other Gaming Forum
PC games
WarCraft III Modding
Detect being on water
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top