BIS fnc countdown: Difference between revisions
Lou Montana (talk | contribs) m (Some wiki formatting) |
Lou Montana (talk | contribs) m (Text replacement - " ''via'' " to " via ") |
||
Line 8: | Line 8: | ||
|descr= Triggers a countdown. | |descr= Triggers a countdown. | ||
{{Feature|informative| | {{Feature|informative| | ||
The '''initial''' countdown can be accessed | The '''initial''' countdown can be accessed via [[missionNamespace]]'s variable '''BIS_fnc_countdown_time'''.<br> | ||
The initial value is either <sqf inline>serverTime + timeInSeconds</sqf> (if set globally) or <sqf inline>time + timeInSeconds</sqf> (if set locally). | The initial value is either <sqf inline>serverTime + timeInSeconds</sqf> (if set globally) or <sqf inline>time + timeInSeconds</sqf> (if set locally). | ||
To return the left-over time see {{Link|#Example 4}}. | To return the left-over time see {{Link|#Example 4}}. |
Latest revision as of 12:44, 21 February 2025
Description
Syntax
- Syntax:
- [timeInSeconds, global] call BIS_fnc_countdown
- Parameters:
- timeInSeconds - can be:
- global - Boolean: True to set it globally (Optional) Default: true
- Return Value:
Examples
- Example 1:
- Example 2:
- Example 3:
- Example 4:
- Example 5:
Additional Information
- See also:
- BIS_fnc_VRTimer
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note