Difference between revisions of "sleep"

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Added active link.)
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 00:47, 2 August 2006

Introduced with Armed Assault version 2.6
  

Click on the images for descriptions

Introduced in

Game:
Armed Assault
Version:
2.6

Description

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

Syntax

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

Examples

Example 1:
sleep 0.5

Additional Information

Multiplayer:
-
See also:
See also needed

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section