| 06-13-2009, 09:56 AM | #1 |
Hi again I want to check if patching at certain point is walkable or not... I have been using this if/then/else condition: (Terrain pathing at (TempPoint <gen>) of type Walkability is off) Equal to True This seems to work with cliffs, but when I check it on destructibles or doodats or patching blockers, it returns the point as walkable. It's getting me frustrated, why it doesnt work? Thanks |
| 06-13-2009, 10:33 AM | #2 |
That function only checks if the terrain itself is pathable at that point and ignores doodads and units. Dusk and Anitarf made a script that checks if a certain point is really walkable by moving a dummy unit to that point and checking if it was really moved to that point. http://www.wc3c.net/showthread.php?t=103862 You will need some bits of jass knowledge to use this though. But I think all you need should be: Trigger: Custom Script: return IsTerrainPathingType(GetLocationX(udg_TempPoint), GetLocationY(udg_TempPoint), 4) |
| 06-13-2009, 01:09 PM | #3 |
Ah Damn I should have know that :] Nevermind, thanks |
