Quote:
Originally posted by Slaktmaster
if (playerenters) {this.mode=1;}
if (this.mode==1) {this.mode=2;timeout=0.05;}
if (this.mode==2) {this.mode=1;timeout=0.05;}
|
what would the point of that be?
maybe if you used functions for each mode like
PHP Code:
if (created||playerenters) {this.mode==1;
}
if (this.mode==1) {this.mode==2;
timeout=.5;
}
if (this.mode==2) {this.mode==1;
timeout=.5;
}
while (this.mode==1) mode1();
while (this.mode==2) mode2();
function mode1() {
say2 Mode 1;
//add more mode one actions
}
function mode2() {
say2 Mode 2;
//add more mode two actions
}
or something lel.