skipTime
Jump to navigation
Jump to search
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. - Multiplayer:
- Even though the immediate effect of skipTime is only local, the new time will propagate through the network after 30 seconds or so.
- Groups:
- Uncategorised
Syntax
- Syntax:
- skipTime duration
- Parameters:
- duration: Number - Hours to skip.
A positive value will create a forward time jump, a negative value will jump backwards.
One second is roughly 0.00026 hours.
Any calculations must be enclosed in parentheses, e.g. skipTime (_seconds/3600) - Return Value:
- Nothing
Examples
- Example 1:
skipTime 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
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 ) % 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.
- kju
- I cannot confirm this for OA 1.60 beta (85889): MP: Even though the immediate effect of skipTime is only local, the new time will propagate through the network after 30 seconds or so. Instead the date, which includes time, is synced automatically for new JIP clients - NOT for present instances. So one has to apply skipTime on all instances in MP (server + all present clients).
Bottom Section
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint version 1.00
- Operation Flashpoint: New Scripting Commands
- Operation Flashpoint: Scripting Commands
- Command Group: Uncategorised
- Scripting Commands: Local Effect
- Scripting Commands OFP 1.96
- Scripting Commands OFP 1.46
- Scripting Commands ArmA
- Scripting Commands ArmA2
- Command Group: Environment
- Scripting Commands Take On Helicopters