| 04-26-2007, 10:28 AM | #1 |
Now, I could have sworn I saw 'something' that returned whether a point was pathable or not looking through triggers... ...but looking back, I can't seem to find it. I want to move a hero to target point, if target point != pathable, I want it to let me know so I can stop the knockback effects. Thanks in advance. |
| 04-26-2007, 11:50 AM | #2 |
I think it has somehting to do with GetTerrainType takes real x, real y, returns integer |
| 04-26-2007, 12:55 PM | #3 |
JASS:if IsTerrainPathable(x,y,false) == true then |
| 04-26-2007, 01:23 PM | #4 |
IsTerrainPathable returns the opposite to what you'll expect. And it ignores destructables |
| 04-26-2007, 06:48 PM | #5 |
I think there is no function from blizzard which checks that. But you can easily make your own. You just have to create a unit at the loc you wanna check and check after creation if the unit is still on the loc you created it on. Because if the loc is unpathable it wont create the unit there but somewhere else at a point which is pathable. WFR Maley |
| 04-26-2007, 07:42 PM | #6 |
Did you read posts above before replying? |
| 04-27-2007, 06:54 AM | #7 |
He has a better answer. |
| 04-27-2007, 07:00 AM | #8 |
Items will be better http://www.wc3jass.com/viewtopic.php...light=pathable |
| 04-29-2007, 07:00 AM | #9 |
Thanks for the replies folks, greatly appreciated. |
| 04-30-2007, 01:30 AM | #10 | |
You could also use this code by grim001: Quote:
|
