Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var Act1Wp=getPresetUnit(1,2,119),Path,path=[],fire=getPresetUnit(1,2,39),fPath;
- fPath=getPath(1,me.x,me.y,fire.roomx*5+fire.x+5,fire.roomy*5+fire.y-5,false,10,5);
- Path=getPath(1,fire.roomx*5+fire.x+5,fire.roomy*5+fire.y-5,Act1Wp.roomx*5+Act1Wp.x,Act1Wp.roomy*5+Act1Wp.y,false,10,5);
- fPath.shift();
- Path.shift();
- if(fPath&&fPath.length>0)for(var node=0;node<fPath.length;node++)path.push(fPath[node].x,fPath[node].y);
- if(Path&&Path.length>0)for(var node=0;node<Path.length;node++)path.push(Path[node].x,Path[node].y);
- print(path);
Add Comment
Please, Sign In to add comment