pathing check?

drak_dragon

New Member
Reaction score
6
is it possible to check to see if movement from location x to y is possible and return a yes or no? what im trying to do is when the "send wave" button is clicked, it will check to see if a creep can move from the spawn point to the end goal from each of three spawn points. If it can't, it will return an error saying that there's blocking, and the wave wont be sent.
 

Bogrim

y hello thar
Reaction score
154
The only solution I can think of is to create a really fast moving dummy unit (think Wind Walk 1000%) and issue it to move to the target location. Then wait a bit and check if the unit is in range of your point, and if not it's probably not possible.
 

Crazy_Dead

New Member
Reaction score
24
^Above

Or, as i thinking when i read:

JASS:
IsTerrainPathable(/*Dont remeber Arguments, <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite7" alt=":p" title="Stick Out Tongue    :p" loading="lazy" data-shortname=":p" />*/)
 

Moridin

Snow Leopard
Reaction score
144
I actually think you could also use an algorith along with the boolean condition:

Environment - (Terrain pathing at (Center of (Playable map area)) of type Walkability is off) Not equal to True

...to run through all the point in a region and determine a walkable path? It would be pretty time consuming to develop the argorithm though.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top