Thread
:
While Command doesn't seem to be working correctly
View Single Post
#
3
01-09-2002, 06:38 PM
grim_squeaker_x
Retired Oldbie
Join Date: Mar 2001
Posts: 3,084
If your code is something like:
NPC Code:
while (this.var+this.i==2) {
this.var=3;
}
It'll only perform once, even if this.var+this.i becomes 2 again. The solution is quite simply putting it in a timeout loop.
__________________
grim_squeaker_x
View Public Profile
View GraalOnline Profile
Find all posts by grim_squeaker_x