
08-26-2007, 04:17 AM
|
|
N-Pulse Assistant Manager
|
 |
Join Date: Mar 2005
Posts: 2,180
|
|
Quote:
Originally Posted by DustyPorViva
Well, there's no function for it(see my suggestion thread about onwall3), but the only way to do it is to do something like I did for my lighting script...
PHP Code:
accuracy=.25;
onwall=0;
while (i<dist/accuracy) {
onwall=onwall(x+dx*i,y+dx*i);
if (onwall==1) break;
i+=accuracy;
}
This isn't going to be too] tax-worthy on CPU, but a lot of baddies doing it might slow it down... but there's no other way.
|
Didn't work.  |
__________________
Quote:
*SlikRick: so should I even ask about your aim status?
*Xor: well if you want to
*Xor: but i am LARPING
*SlikRick: While on a computer?
*Xor: yes
*Xor: in my living room
*SlikRick: ahh
*Xor: i have a fort setup to hide from beasts
|
|
|
|
|