WaitKey (int time)
Pauses the script and lets the game continue until EITHER:
(a) TIME loops have elapsed, or
(b) the player presses a key
Returns 0 if the time elapsed, or 1 if the player interrupted it.
Example:
WaitKey(200);
will pause the script and wait until 5 seconds have passed or the player presses a key.
See Also: Wait, WaitMouseKey
|