View Single Post
  #3  
Old 08-26-2007, 04:17 AM
coreys coreys is offline
N-Pulse Assistant Manager
coreys's Avatar
Join Date: Mar 2005
Posts: 2,180
coreys has a spectacular aura about
Send a message via AIM to coreys Send a message via MSN to coreys Send a message via Yahoo to coreys
Quote:
Originally Posted by DustyPorViva View Post
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
Reply With Quote