![]() |
While
Stefan, you need to make while like this:
Instead of it being in a event to work, make it so it works indepentdantly. So lets say I have a variable on. A different NPC sets on to 1. Another NPC has it so while(on=1) {script}, the other NPC has no other script either. SO basicly it actively checks when on = true, and when on = false it stops. I thought that was in there already, but I'm posting this, so learned otherwise. |
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 |
Re: umm
Quote:
|
you totally missed the meaning behind the while statement...
|
great idea...lol
its so good, its already been done, lol. |
| All times are GMT +2. The time now is 10:49 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.