• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[JASS] IsPointWater crashes WE ?

Status
Not open for further replies.

Ardenian

A

Ardenian

Does the function IsPointWater crashes the WE ?
It does not give me a syntax error in JassCraft, but upon saving it crashes my WE.

JASS:
if IsPointWater( x, y) == true then
crashes, but

JASS:
if IsTerrainPathable(x,y,PATHING_TYPE_WALKABILITY) and not IsTerrainPathable(x,y,PATHING_TYPE_AMPHIBIOUSPATHING) then
does not. If I use the second one and it would return fales ( not water), would then ifthen run then or correctly not ?
 

Ardenian

A

Ardenian

Since IsPointWater is not highlighted when you post it on the hive, means it's not a default native and requires a third party addition.

Hm, thank you!
Strange, JassCraft recognizes it and it is in their function list.
 
Status
Not open for further replies.
Top