uiSleep: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 15: | Line 15: | ||
|gr1= Program Flow | |gr1= Program Flow | ||
|descr= 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 | |descr= 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]] would get stuck indefinitely, [[uiSleep]] can still be used to effectively delay script execution for example in pause or in a mission briefing or an editor or when simulation is paused in general. | |||
|s1= [[uiSleep]] delay | |s1= [[uiSleep]] delay | ||
|p1= delay : [[Number]] | |p1= delay: [[Number]] | ||
|r1= [[Nothing]] | |r1= [[Nothing]] | ||
|x1= < | |x1= <sqf>uiSleep 0.5;</sqf> | ||
|seealso= [[sleep]] [[waitUntil]] [[canSuspend]] [[spawn]] [[execVM]] [[Control Structures]] [[sleep vs uiSleep]] | |seealso= [[sleep]] [[waitUntil]] [[canSuspend]] [[spawn]] [[execVM]] [[Control Structures]] [[sleep vs uiSleep]] | ||
}} | }} | ||
Revision as of 17:26, 5 April 2022
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 would get stuck indefinitely, uiSleep can still be used to effectively delay script execution for example in pause or 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