Thread
:
Custom Projectile
View Single Post
#
3
12-03-2008, 05:26 PM
Codein
jwd
Join Date: Oct 2005
Location: Greater Manchester
Posts: 2,423
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
..
Codein
View Public Profile
View GraalOnline Profile
Find all posts by Codein