
01-11-2002, 10:55 AM
|
|
Registered User
|
Join Date: Nov 2001
Location: VA, USA
Posts: 501
|
|
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"
|
|
|
|