BIS fnc setDate: Difference between revisions
Jump to navigation
Jump to search
m (updated description with image of transition effect) |
Lou Montana (talk | contribs) m (Use Date format) |
||
Line 7: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Instantly set date and share it across network with optional transition effect. [[File:BIS_fnc_setDate.jpg|left|400px]]|DESCRIPTION= | | Instantly set date and share it across network with optional transition effect. [[File:BIS_fnc_setDate.jpg|left|400px]] |DESCRIPTION= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [date, global, transition] call [[BIS_fnc_setDate]] |SYNTAX= | | [date, global, transition] call [[BIS_fnc_setDate]] |SYNTAX= | ||
|p1= date: [[Number]] or [[ | |p1= date: [[Number]] or [[Date]] | ||
* [[Number]] - number of hours to skip | * [[Number]] - number of hours to skip | ||
* [[ | * [[Date]] - date in format [year, month, day, hour, minute] |PARAMETER1= | ||
|p2= global: [[Boolean]] - (Optional, default [[true]]) [[true]] for global execution |PARAMETER2= | |p2= global: [[Boolean]] - (Optional, default [[true]]) [[true]] for global execution |PARAMETER2= | ||
Line 20: | Line 20: | ||
|p3= transition: [[Boolean]] (Optional, default [[false]]) [[true]] to show a transition effect instead of an immediate skip |PARAMETER3= | |p3= transition: [[Boolean]] (Optional, default [[false]]) [[true]] to show a transition effect instead of an immediate skip |PARAMETER3= | ||
| [[ | | [[Date]] - the new date |RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code><nowiki | |x1= <code>[<nowiki/>[2035, 12, 31, 23, 59], [[true]], [[true]]] [[call]] [[BIS_fnc_setDate]];</code> |EXAMPLE1= | ||
|x2= <code>[3.5] [[call]] [[BIS_fnc_setDate]];</code> |EXAMPLE2= | |x2= <code>[3.5] [[call]] [[BIS_fnc_setDate]];</code> |EXAMPLE2= | ||
Line 40: | Line 40: | ||
<h3 style="display:none">Bottom Section</h3> | <h3 style="display:none">Bottom Section</h3> | ||
[[Category:Function Group: Environment|{{uc:setDate}}]] | [[Category:Function Group: Environment|{{uc:setDate}}]] | ||
Revision as of 21:49, 30 June 2020
Description
- Description:
- Instantly set date and share it across network with optional transition effect.
- Execution:
- call
- Groups:
- Uncategorised
Syntax
- Syntax:
- [date, global, transition] call BIS_fnc_setDate
- Parameters:
- date: Number or Date
- 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:
- Date - 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