waitUntil: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
[[Category:Scripting Commands|WAITUNTIL]]
{{Command|= Comments
[[Category:Scripting Commands ArmA|WAITUNTIL]]
____________________________________________________________________________________________


| arma |= Game name


<h2 style="color:#000066">'''waitUntil ''condition'''''</h2>
|2.6|= Game version
____________________________________________________________________________________________


| Suspend execution of [[function]] based script until condition is satisfied. |= Description
____________________________________________________________________________________________


'''Operand types:'''
| '''waitUntil''' condition |= Syntax


'''condition:''' [[Code]]
|p1= condition: [[Code]] |= Parameter 1


'''Type of returned value:'''
| [[Nothing]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>_i = 0; waitUntil {_i = _i + 1; _i >= 100}</pre> |= Example 1
____________________________________________________________________________________________


[[Nothing]]
|  |= See also


'''Compatibility:'''
}}


Version 2.60 required.
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


'''Description:'''
<!-- Note Section END -->
</dl>


Suspend execution of [[Function|function]] based script until condition is satisfied.
<h3 style="display:none">Bottom Section</h3>


 
[[Category:Scripting Commands|WAITUNTIL]]
'''Example:'''
[[Category:Scripting Commands ArmA|WAITUNTIL]]
 
_i = 0; '''waitUntil''' {_i = _i + 1; _i >= 100}

Revision as of 23:41, 1 August 2006

-wrong parameter ("Arma") defined!-2.6
Hover & click on the images for description

Description

Description:
Suspend execution of function based script until condition is satisfied.
Groups:
Uncategorised

Syntax

Syntax:
waitUntil condition
Parameters:
condition: Code
Return Value:
Nothing

Examples

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

Additional Information

See also:
See also needed

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section