Thread: While
View Single Post
  #2  
Old 01-11-2002, 10:55 AM
mikepg mikepg is offline
Registered User
Join Date: Nov 2001
Location: VA, USA
Posts: 501
mikepg is on a distinguished road
Send a message via AIM to mikepg Send a message via Yahoo to mikepg
umm

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
__________________
~War Lord Mpg2
Bravo Online's Asst. Staff Manager

"Sittin by the tree, sippin eggnog, waitin on christmas gifts"
Reply With Quote