Okay, well I have this now:
PHP Code:
function checkPath(ox, dx, oy, dy) {
temp.delta = {dx - ox, dy - oy, (temp.delta[0]^2+temp.delta[1]^2)^.5};
i = 0;
temp.onwall = false;
while (i < temp.delta[2]) {
this.chat = onwall2(ox+(temp.delta[0]/temp.delta[2])*i,oy+(temp.delta[1]/temp.delta[2])*i, 1, 1);
if (onwall2(ox+(temp.delta[0]/temp.delta[2])*i,oy+(temp.delta[1]/temp.delta[2])*i, 1, 1)) {
temp.onwall = true;
i = temp.delta[0];
}
else i++;
}
return temp.onwall;
}
aaaand, nothin...isn't even setting this.chat o.0