
12-04-2008, 11:53 AM
|
|
Registered User
|
 |
Join Date: Oct 2008
Posts: 1,133
|
|
Quote:
Originally Posted by 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.
|
You're a genius dude.
Thanks. |
|
|
|