sleep: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Added active link.)
No edit summary
Line 1: Line 1:
[[Category:Scripting Commands|SLEEP]]
{{Command|= Comments
[[Category:Scripting Commands ArmA|SLEEP]]
____________________________________________________________________________________________


| arma |= Game name


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


| Suspend execution of [[function]] based [[script]] for given time. |= Description
____________________________________________________________________________________________


'''Operand types:'''
| '''sleep''' delay |= Syntax


'''delay:''' [[Number]]
|p1= delay: [[Number]] |= Parameter 1


'''Type of returned value:'''
| [[Nothing]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>sleep 0.5</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 [[Functions - SQF|function]] based [[Script|script]] for given time.
<h3 style="display:none">Bottom Section</h3>
 
[[Category:Scripting Commands|SLEEP]]
 
[[Category:Scripting Commands ArmA|SLEEP]]
'''Example:'''
 
'''sleep''' 0.5

Revision as of 23:47, 1 August 2006

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

Description

Description:
Suspend execution of function based script for given time.
Groups:
Uncategorised

Syntax

Syntax:
sleep delay
Parameters:
delay: Number
Return Value:
Nothing

Examples

Example 1:
sleep 0.5

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