• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[General] This code line in GUI O.o

Status
Not open for further replies.
In GUI, it is this:
  • Custom script: set udg_pathingDirections[1] = CheckPathability( GetLocationX(udg_TempPoint2), GetLocationY(udg_TempPoint2))
In all seriousness, CheckPathability() is a custom function. It is implemented by this system, by Vexorian (this is the only working version I found, since the old wc3jass is dead):
http://peeeq.de/code.php?id=2202

So it isn't available in GUI. As for the trigger IcemanBo linked, it'll check only the static pathing map (cliffs, water, etc.). It won't check for buildings/destructables. If you want a GUI option, see:
http://www.hiveworkshop.com/forums/spells-569/check-walkability-239115/

It would be:
  • Set CP_Point = TempPoint2
  • Trigger - Run Check Walkability <gen> (ignoring conditions)
  • Set pathingDirections[1] = CP_PointIsWalkable
  • -------- Only add the line below if you want to get rid of TempPoint2 --------
  • Custom script: call RemoveLocation(udg_CP_Point)
 
Level 15
Joined
Oct 29, 2012
Messages
1,474
Thanks both
@PurgeAndFire
I already tried your tool and it is very useful
but since I am not using it in my own map, I don't know how I link it into a trigger
I mean I am converting a JASS trigger into GUI in Farmer vs Hunter map which rednek gave me since he lost the original unlocked map he told me to unprotect his and convert it
So now he isn't connecting anymore I own the map now
But I can't ask him what the code jass is in GUI
Well For this following :
In GUI, it is this:
  • Custom script: set udg_pathingDirections[1] = CheckPathability( GetLocationX(udg_TempPoint2), GetLocationY(udg_TempPoint2))

It always shows an error
I don't know what is wrong
 
It always shows an error
I don't know what is wrong

Make sure you have the script for "CheckPathability" imported into your map. It might be in a trigger, or it might be in the map header (open trigger editor, click the map's name above where all the triggers are listed, and you should see script to the side [or an empty window]). You just need to copy and paste it.

If that doesn't work, then post the error message.
 
Level 15
Joined
Oct 29, 2012
Messages
1,474
So ?
attachment.php
 

Attachments

  • Error.png
    Error.png
    85.4 KB · Views: 140
Status
Not open for further replies.
Top