sleep vs uiSleep

From Bohemia Interactive Community
Revision as of 15:51, 29 May 2015 by Killzone Kid (talk | contribs)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

sleep vs. uiSleep

The workings of sleep could be compared to: //sleep 5; t = time + 5; waitUntil {time >= t}; The workings of uiSleep could be compared to: //uiSleep 5; t = diag_tickTime + 5; waitUntil {diag_tickTime >= t}; When simulation is interrupted, time freezes, but not diag_tickTime. Also time at the start of in init.sqf is often reported as 0, even if the mission has already started.