Difference between revisions of "CountDown"

From cluster wiki
Jump to navigation Jump to search
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;">
Utility Functions: Eric's Mission Framework
Utilities: Eric's Mission Framework
</div></dd>
</div></dd>
  </dl>  
  </dl>  

Revision as of 14:26, 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