BIS fnc setDate: Difference between revisions
Jump to navigation
Jump to search
m (1 revision) |
Lou Montana (talk | contribs) (Page filling) |
||
Line 1: | Line 1: | ||
{{Function|= Comments | {{Function|= Comments | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Line 8: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | Instantly set date and share it across network. |= Description | ||
____________________________________________________________________________________________ | |||
| [date, global, transition] call [[BIS_fnc_setDate]] |= Syntax | |||
|p1= date: [[Number]] or [[Array]] | |||
* [[Number]] - number of hours to skip | |||
* [[Array]] date in format [yyyy, mm, dd, hh, mm] (see [[date]] and [[setDate]]) |= Parameter 1 | |||
|p2= global: [[Boolean]] - (Optional, default [[true]]) [[true]] for global execution |= Parameter 2 | |||
|p3= transition: [[Boolean]] (Optional, default [[false]]) [[true]] to show a transition effect instead of an immediate skip |= Parameter 3 | |||
| [[Array]] - the new date |= Return value | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| < | |x1= <code><nowiki>[</nowiki>[2035, 12, 31, 23, 59], [[true]], [[true]]] [[call]] [[BIS_fnc_setDate]];</code> |= Example 1 | ||
| | |x2= <code>[3.5] [[call]] [[BIS_fnc_setDate]];</code> |= Example 2 | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | [[date]], [[setDate]], [[skipTime]] |= See also | ||
}} | }} | ||
Revision as of 13:20, 7 May 2018
Description
- Description:
- Instantly set date and share it across network.
- Execution:
- call
- Groups:
- Uncategorised
Syntax
- Syntax:
- [date, global, transition] call BIS_fnc_setDate
- Parameters:
- date: Number or Array
- global: Boolean - (Optional, default true) true for global execution
- transition: Boolean (Optional, default false) true to show a transition effect instead of an immediate skip
- Return Value:
- Array - the new date
Examples
- Example 1:
[[2035, 12, 31, 23, 59], true, true] call BIS_fnc_setDate;
- Example 2:
[3.5] call BIS_fnc_setDate;
Additional Information
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