Difference between revisions of "cmf utility fnc countDown"

From cluster wiki
Jump to navigation Jump to search
(Created page with "{{CMF Function |game1=arma3 |version1=0.50 |game2=cmf3 |version2=2.1.0 |descr=This function creates a global countdown. |exec=Call |cmp=utility |s1=[seconds, text, block...")
 
 
Line 24: Line 24:


|x1= {{code|lang=scilab|[60, "Finished unloading in: ", true] call cmf_utility_fnc_countDown;}}
|x1= {{code|lang=scilab|[60, "Finished unloading in: ", true] call cmf_utility_fnc_countDown;}}
|seealso= [[cmf_utility_fnc_submitAAR]] [[cmf_utility_fnc_clearVehicleCargo]] [[cmf_utility_fnc_endLoadingScreen]] [[cmf_utility_fnc_freezeTime]]
[[cmf_utility_fnc_nearestPlayer]] [[cmf_utility_fnc_preventProne]] [[cmf_utility_fnc_restrictZeus]] [[cmf_utility_fnc_stripUnit]]
}}
}}

Latest revision as of 22:10, 17 December 2022


Hover & click on the images for description
Description
Description:
This function creates a global countdown.
Execution:
Call
Groups:
CMF3: utility
Syntax
Syntax:
[seconds, text, blocking] call cmf_utility_fnc_countDown
Parameters:
seconds: Number - The time in seconds the countdown will last
text: String - Text to go along with the countdown, e.g. "wave ends in: " it can also be an empty string for no countdown
blocking: Number - (Optional, default true) If true this function will block further code execution until the countdown reaches 0
Return Value:
None
Examples
Example 1:
[60, "Finished unloading in: ", true] call cmf_utility_fnc_countDown;
Additional Information
See also:
cmf_utility_fnc_submitAAR cmf_utility_fnc_clearVehicleCargo cmf_utility_fnc_endLoadingScreen cmf_utility_fnc_freezeTime cmf_utility_fnc_nearestPlayer cmf_utility_fnc_preventProne cmf_utility_fnc_restrictZeus cmf_utility_fnc_stripUnit
Internal Variables
No internal variables
Events
No events
Notes