sleep vs uiSleep: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Some wiki formatting) |
Killzone Kid (talk | contribs) No edit summary |
||
Line 12: | Line 12: | ||
| <sqf> | | <sqf> | ||
// uiSleep 5; | // uiSleep 5; | ||
_t = | _t = uiTime + 5; | ||
waitUntil { | waitUntil { uiTime >= _t }; | ||
</sqf> | </sqf> | ||
|} | |} | ||
When the simulation is interrupted, [[time]] freezes, but not [[ | When the simulation is interrupted, [[time]] freezes, but not [[uiTime]]. Also [[time]] at the start of in ''init.sqf'' is often reported as 0, even if the mission has already started. |