Page tree
Skip to end of metadata
Go to start of metadata


Introduced in

Version:1.00

Description

Description:

Jumps the specified number of hours forward or backward.

The time of day and tides are adjusted, but no changes are made to any units. If present, the lower level of clouds instantly jump to the position they would be in, if time had passed normally.

Syntax

Syntax:skipTime duration
Parameters:
  • duration: Number - Hours to skip. A positive value creates a forward time jump, a negative value jumps backwards. One second is roughly 0.00026 hours.
Return Value:Nothing

Examples

Examples:skipTime 5

Additional Information

See also: setDate, accTime
Multiplayer:Even though the immediate effect of skipTime is only local, the new time is propagated through the network after about 30.
Problems:

Notes





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 ) a % b 24


Ceeeb
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.