Thread: While
View Single Post
  #3  
Old 01-11-2002, 02:10 PM
BlKnight BlKnight is offline
Not in Use
Join Date: Mar 2001
Location: N/A
Posts: 1,527
BlKnight is on a distinguished road
Re: umm

Quote:
Originally posted by mikepg
I think it already works like that...try using timeouts and while statements


//NPC 1

if (flag) {on=1;
}
if (flag) {on=0;
}
(Keep in mind, some flags are not called like playerchats)

//NPC 2

if (timeout) {
while (on=1) {stuff;
}
timeout = .05;
}
since while is continuous (sp), it doesnt matter if it is called over and over. Your better off not using while anywayz
You think, genius? Didn't I say "without timeouts"? Well I did now.
__________________
This account is no longer is use.
Reply With Quote