while ( expression ) {
statements
}
Runs statements continuously, while expression is true.
For example:
while (cEgo.Moving) {
Wait(1);
}
will run the script Wait(1); repeatedly, as long as cEgo.Moving is
not zero. Once it is zero, the while statement will exit at the end of the loop.
|