waitUntil: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (It can be used in functions too)
m (Only for functions)
Line 20: Line 20:
'''Description:'''
'''Description:'''


Suspend execution of script (or function as well) until condition is satisfied.
Suspend execution of [[Functions - SQF|function]] based script until condition is satisfied.





Revision as of 09:58, 24 July 2006


waitUntil condition


Operand types:

condition: Code

Type of returned value:

Nothing

Compatibility:

Version 2.60 required.

Description:

Suspend execution of function based script until condition is satisfied.


Example:

_i = 0; waitUntil {_i = _i + 1; _i >= 100}