Difference between revisions of "CountDown"
Jump to navigation
Jump to search
(Created page with "<div style="padding:0.33em 2em;font-size:1.2em;font-weight:bold;display:block; border-bottom: #25A1A1 solid 1px; background-color:#E0FFFF;color:#25A1A1">Description</div> <dl...") |
|||
(6 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;"> | ||
[time, text, blocking] call ''' | [time, text, blocking] call '''emf_utilities_fnc_countDown''' | ||
</div></dd> | </div></dd> | ||
Line 58: | Line 58: | ||
<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;"> | ||
[60, "Weapons hot in: "] call ''' | [60, "Weapons hot in: "] call '''emf_utilities_fnc_countDown'''; | ||
</code></dd> | </code></dd> | ||
Line 64: | Line 64: | ||
<dt style="clear:both;font-weight:bold;position:absolute;padding:.3em;">Example 2:</dt> | <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;"> | <dd style="width:90%;padding:.3em .3em .3em 7em;"><code style="border:#25A1A1 dashed 1px;display:block;"> | ||
[30, "Suffocation in: ", true] call ''' | [30, "Suffocation in: ", true] call '''emf_utilities_fnc_countDown''';<br> | ||
hint "You suffocated"; | '''hint''' "You suffocated"; | ||
</code></dd> | </code></dd> | ||
Line 77: | Line 77: | ||
<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;">[[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;">[[SetDate]]</div> | <div style="display:block;">[[SetDate]]</div> | ||
<div style="display:block;">[[ | <div style="display:block;">[[SlotLimit]]</div> | ||
<div style="display:block;">[[ZeusFPS]]</div> | <div style="display:block;">[[ZeusFPS]]</div> | ||
</dd> | </dd> | ||
Latest revision as of 14:47, 26 March 2022
Description
- Description:
A function to display a countdown timer for all players.
- Execution:
call
- Groups:
Utilities: Eric's Mission Framework
Syntax
- Syntax:
[time, text, blocking] call emf_utilities_fnc_countDown
- Parameters:
time: Number - Time to countdown in seconds.
text: String - Text to display with countdown.
blocking: Boolean - (Optional) When true Will block further execution of code until countdown is finished. [Default: false]
- Return Value:
Boolean - Returns true on success.
Examples
- Example 1:
[60, "Weapons hot in: "] call emf_utilities_fnc_countDown;
- Example 2:
[30, "Suffocation in: ", true] call emf_utilities_fnc_countDown;
hint "You suffocated";
Additional Information
- See also:
Notes