Its like 4 years ago when you made it for me
//Garfield1337's Pathfinding system
//===================================================
//Credit This system to Garfield1337
function ItemHide takes nothing returns nothing
call SetItemVisible(GetEnumItem(),false)
endfunction
function ItemShow takes nothing returns nothing
call SetItemVisible(GetEnumItem(),true)
endfunction
function IsGarLocPathable takes location l returns boolean
local boolean b
local real dx
local real dy
if IsTerrainPathable(GetLocationX(l),GetLocationY(l),PATHING_TYPE_WALKABILITY) == true then
set b = false
else
call MoveRectToLoc(udg_DummyRect,l)
call EnumItemsInRect(udg_DummyRect,null,function ItemHide)
call SetItemVisible(udg_DummyItem,true)
call SetItemPosition(udg_DummyItem,GetLocationX(l),GetLocationY(l))
set dx = GetItemX(udg_DummyItem) - GetLocationX(l)
set dy = GetItemY(udg_DummyItem) - GetLocationY(l)
if SquareRoot(dx * dx + dy * dy) > 0.00 then
set b = false
else
set b = true
endif
call EnumItemsInRect(udg_DummyRect,null,function ItemShow)
call SetItemVisible(udg_DummyItem,false)
endif
return b
endfunction
Fun times when wc3 were still active.