Difference between revisions of "SetDate"
Jump to navigation
Jump to search
(7 intermediate revisions by the same user not shown) | |||
Line 18: | Line 18: | ||
<dt style="clear:both;font-weight:bold;position:absolute;padding:.3em;">Groups:</dt> | <dt style="clear:both;font-weight:bold;position:absolute;padding:.3em;">Groups:</dt> | ||
<dd style="width:90%;padding:.3em .3em .3em 7em;"><div style="display:block;"> | <dd style="width:90%;padding:.3em .3em .3em 7em;"><div style="display:block;"> | ||
Utilities: Eric's Mission Framework | |||
</div></dd> | </div></dd> | ||
</dl> | </dl> | ||
Line 28: | Line 28: | ||
<dt style="clear:both;font-weight:bold;position:absolute;padding:.3em;">Syntax:</dt> | <dt style="clear:both;font-weight:bold;position:absolute;padding:.3em;">Syntax:</dt> | ||
<dd style="width:90%;padding:.3em .3em .3em 7em;"><div style="display:block;"> | <dd style="width:90%;padding:.3em .3em .3em 7em;"><div style="display:block;"> | ||
[] call ''' | [] call '''emf_utilities_fnc_setDate''' | ||
</div></dd> | </div></dd> | ||
Line 39: | Line 39: | ||
<dt style="clear:both;font-weight:bold;position:absolute;padding:.3em;">Return Value:</dt> | <dt style="clear:both;font-weight:bold;position:absolute;padding:.3em;">Return Value:</dt> | ||
<dd style="width:90%;padding:.3em .3em .3em 7em;"><div style="display:block;"> | <dd style="width:90%;padding:.3em .3em .3em 7em;"><div style="display:block;"> | ||
Handle - Script handle for setDate loop. (can be terminated with terminate) | |||
</div></dd> | </div></dd> | ||
</dl> | </dl> | ||
Line 49: | Line 49: | ||
<dt style="clear:both;font-weight:bold;position:absolute;padding:.3em;">Example 1:</dt> | <dt style="clear:both;font-weight:bold;position:absolute;padding:.3em;">Example 1:</dt> | ||
<dd style="width:90%;padding:.3em .3em .3em 7em;"><code style="border:#25A1A1 dashed 1px;display:block;"> | <dd style="width:90%;padding:.3em .3em .3em 7em;"><code style="border:#25A1A1 dashed 1px;display:block;"> | ||
call ''' | call '''emf_utilities_fnc_setDate'''; | ||
</code></dd> | |||
<!-- EXAMPLE --> | |||
<dt style="clear:both;font-weight:bold;position:absolute;padding:.3em;">Example 2:</dt> | |||
<dd style="width:90%;padding:.3em .3em .3em 7em;"><code style="border:#25A1A1 dashed 1px;display:block;"> | |||
// Terminates handle after 10 seconds <br> | |||
_handle = call '''emf_utilities_fnc_setDate'''; <br> | |||
'''sleep''' 10; <br> | |||
'''terminate''' _handle; | |||
</code></dd> | </code></dd> | ||
Line 61: | Line 70: | ||
<dt style="clear:both;font-weight:bold;position:absolute;padding:.3em;">See also:</dt> | <dt style="clear:both;font-weight:bold;position:absolute;padding:.3em;">See also:</dt> | ||
<dd style="width:90%;padding:.3em .3em .3em 7em;column-count:4;"> | <dd style="width:90%;padding:.3em .3em .3em 7em;column-count:4;"> | ||
<div style="display:block;">[[ | <div style="display:block;">[[CountDown]]</div> | ||
<div style="display:block;">[[EndLoadingScreen]]</div> | |||
<div style="display:block;">[[EnhancedAIConvoy]]</div> | |||
<div style="display:block;">[[EnhancedAttachTo]]</div> | |||
<div style="display:block;">[[NearestPlayer]]</div> | |||
<div style="display:block;">[[NotZeus]]</div> | |||
<div style="display:block;">[[PreventProne]]</div> | |||
<div style="display:block;">[[SlotLimit]]</div> | |||
<div style="display:block;">[[ZeusFPS]]</div> | |||
</dd> | </dd> | ||
</dl> | </dl> | ||
Line 69: | Line 86: | ||
<!-- NOTES --> | <!-- NOTES --> | ||
<dl style="width:100%;"></dl> | <dl style="width:100%;"></dl> | ||
* The loop handle is also stored in missionspace as '''"emf_utilities_setDate_handle"''' | |||
<!-- CATEGORIES --> | <!-- CATEGORIES --> | ||
[[Category:Functions: Eric's Mission Framework]] | [[Category:Functions: Eric's Mission Framework]] | ||
[[Category:Utility Functions: Eric's Mission Framework]] | [[Category:Utility Functions: Eric's Mission Framework]] |
Latest revision as of 14:49, 26 March 2022
Description
- Description:
This function freezes time entirely unlike setting "skipTime 0" which still moves time at a very slow pace. Run this from init.sqf.
- Execution:
call
- Groups:
Utilities: Eric's Mission Framework
Syntax
- Syntax:
[] call emf_utilities_fnc_setDate
- Parameters:
None
- Return Value:
Handle - Script handle for setDate loop. (can be terminated with terminate)
Examples
- Example 1:
call emf_utilities_fnc_setDate;
- Example 2:
// Terminates handle after 10 seconds
_handle = call emf_utilities_fnc_setDate;
sleep 10;
terminate _handle;
Additional Information
- See also:
Notes
- The loop handle is also stored in missionspace as "emf_utilities_setDate_handle"