Difference between revisions of "skipTime"

From Bohemia Interactive Community
Jump to navigation Jump to search
m (remove notes from unknown user and added the code to the examples)
m (put results from kk's note into spoiler tags to shorten page length a bit.)
Line 64: Line 64:
 
};
 
};
 
};</code>
 
};</code>
One of the results (results will vary depending on weather conditions):
+
One of the results (results will vary depending on weather conditions):<br>
 +
<spoiler text="Show Results">
 
<code>[1,1.44507]
 
<code>[1,1.44507]
 
[2,1.46118]
 
[2,1.46118]
Line 88: Line 89:
 
[22,0.0490723]
 
[22,0.0490723]
 
[23,1.35205]
 
[23,1.35205]
[24,0.0151367] //this is always the lowest</code>
+
'''[24,0.0151367]''' //this is always the lowest</code>
 
+
</spoiler>
 
<!-- Note Section END -->
 
<!-- Note Section END -->
 
</dl>
 
</dl>

Revision as of 12:25, 1 January 2020

Template:Command

Notes

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).
Killzone_Kid
This command is blocking and in some cases it may take up to 1.5 seconds (probably depends on CPU) for it to calculate the changes to the environment, during which the game will microfreeze. It largely depends on weather changes, which are quite random. However one thing remains consistent, skipTime 24 hours is always almost instant. This is quite helpful when used in conjunction with commands such as setOvercast for instant and seamless effect. To try it yourself use this script: [] spawn { for "_i" from 1 to 24 do { _time = diag_tickTime; skipTime _i; diag_log [_i, diag_tickTime - _time]; sleep 3; }; }; One of the results (results will vary depending on weather conditions):
Show Results

Bottom Section