Quote:
|
Originally Posted by calani
horribly simple way of doing it based on one of the suggestions i posted earlier:
NPC Code:
function onTimeout() {
if (!this.scriptpaused) {
stuff();
}
setTimer(.1);
}
|
that doesn't pause the script calani, the timeout's still running.
in gs1:
if (created) {
this.running=1;
timeout=.05;
}
if (playerchats) {
if (strequals(#c,run)) {
this.active=1;
timeout=.05;
}elseif (strequals(#c,stop)) this.active=0;
}
if (timeout && this.active==1) {
//script
timeout=.05;
}