From Bohemia Interactive Community
Jump to navigation Jump to search



To simulate a smooth time-lapse effect (e.g. in cut-scenes), you can use the following code: while {true} do {skiptime 0.00333; sleep 0.1}
To skip forward to a specific time, irrespective of the current mission time, use: skipTime (_timeToSkipTo - daytime + 24 ) % 24
In ArmA & OFP, skipTime does not actually estimate weather changes beyond moving the clouds across the sky. Weather counters continue as if no time has passed. The setDate command can be used instead of skiptime to change the time without the visual give-away of the lower clouds jumping.

Bottom Section