View Single Post
  #7  
Old 09-28-2003, 10:26 PM
GoZelda GoZelda is offline
Mister 1,000,000
GoZelda's Avatar
Join Date: Jan 2003
Location: Brussels, capital of Europe.
Posts: 5,396
GoZelda will become famous soon enough
Send a message via AIM to GoZelda Send a message via MSN to GoZelda
Yes, but what if i'd wanted to repeat my action? In my "nice" example above, it'd repeat without trouble. How would it work with timeout? You can save some trouble with a sleep for loop. And i don't really see what's wrong with sleep :/
NPC Code:

if (playerenters){
i=1;
this.savex=0;
timeout = 0.05;
}
if (timeout){
if (i<64){
i++;
showpoly 2,{this.savex,32,i,32};
this.savex=i;
} if (i==63){
i=1;
this.savex=0;
}
timeout = 0.05;
}

__________________

Quote:
Originally Posted by Lance
stefan is satan
I am the best.
[URL removed]Music or aural pollution?
Reply With Quote