Difference between revisions of "uiSleep"

From Bohemia Interactive Community
Jump to navigation Jump to search
m (template:command argument fix)
m (Text replacement - "{{uc:{{PAGENAME}}}}" to "")
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Command|= Comments
+
{{Command|Comments=
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| arma2 |= Game name
+
| arma2 |Game name=
  
|1.05|= Game version
+
|1.05|Game version=
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
Line 32: Line 32:
 
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
 
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
 
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
 
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:ArmA 2: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]
+
 
  
 
<!-- CONTINUE Notes -->
 
<!-- CONTINUE Notes -->

Latest revision as of 22:00, 19 September 2019

Introduced with Arma 2 version 1.05
  

Click on the images for descriptions

Introduced in

Game:
Arma 2
Version:
1.05

Description

Description:
Suspend execution of script for given uitime. uiSleep is a sleep method to delay script execution where script time/simulation time is stopped. uiSleep is basically using the system time (uiTime more specifically) and not simulation time. So in the cases where sleep command would get stuck indefinitely, uiSleep can still be used to effectively delay script execution. For example in a mission briefing or an editor or when simulation is paused in general.

Syntax

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

Examples

Example 1:
uiSleep 0.5

Additional Information

Multiplayer:
-
See also:
sleepwaitUntilcanSuspendspawnexecVMControl Structuressleep vs uiSleep

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


Posted on March 28, 2016 - 10:40 (UTC)
Revo
If the game is paused in SP (via ESC) the sleep command will stop working, to prevent that use uiSleep.