uiSleep: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
Lou Montana (talk | contribs) |
||
Line 39: | Line 39: | ||
<dl class="command_description"> | <dl class="command_description"> | ||
<dd class="notedate">Posted on March 28, 2016 - 10:40 (UTC)</dd> | <dd class="notedate">Posted on March 28, 2016 - 10:40 (UTC)</dd> | ||
<dt class="note">[[User: | <dt class="note">[[User:R3vo|R3vo]]</dt> | ||
<dd class="note"> | <dd class="note"> | ||
If the game is paused in SP (via ESC) the sleep command will stop working, to prevent that use uiSleep. | If the game is paused in SP (via ESC) the sleep command will stop working, to prevent that use uiSleep. |
Revision as of 06:29, 30 December 2020
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.
- Groups:
- Program Flow
Syntax
Examples
- Example 1:
uiSleep 0.5
Additional Information
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
- Posted on March 28, 2016 - 10:40 (UTC)
- R3vo
- If the game is paused in SP (via ESC) the sleep command will stop working, to prevent that use uiSleep.