View Single Post
  #3  
Old 12-03-2008, 05:26 PM
Codein Codein is offline
jwd
Codein's Avatar
Join Date: Oct 2005
Location: Greater Manchester
Posts: 2,423
Codein has a spectacular aura aboutCodein has a spectacular aura about
Send a message via AIM to Codein Send a message via MSN to Codein
I'd probably do something like this in the timeout loop:

PHP Code:
for (pl: players) {
  if (
this.x in |pl.x, pl.x + 3| && this.y in |pl.y, pl.y+ 3|) {
    
//hit stuff
  
}
} 
I think you'd do something similar for NPCs.

Last edited by Codein; 12-03-2008 at 07:51 PM..
Reply With Quote