BIS fnc setDate: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "{{Function " to "{{RV|type=function ") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 1: | Line 1: | ||
{{RV|type=function | {{RV|type=function | ||
| arma3 | |game1= arma3 | ||
|1.00 | |version1= 1.00 | ||
|gr1 = Environment | |gr1= Environment | ||
| Instantly set date and share it across network with optional transition effect. [[File:BIS_fnc_setDate.jpg| | |descr= Instantly set date and share it across network with optional transition effect. [[File:BIS_fnc_setDate.jpg|right|300px]] | ||
| [date, global, transition] call [[BIS_fnc_setDate]] | |s1= [date, global, transition] call [[BIS_fnc_setDate]] | ||
|p1= date: [[Number]] or [[Date]] | |p1= date: [[Number]] or [[Date]] | ||
Line 19: | Line 19: | ||
|p3= transition: [[Boolean]] (Optional, default [[false]]) [[true]] to show a transition effect instead of an immediate skip | |p3= transition: [[Boolean]] (Optional, default [[false]]) [[true]] to show a transition effect instead of an immediate skip | ||
| [[Date]] - the new date | |r1= [[Date]] - the new date | ||
|x1= <code>[<nowiki/>[2035, 12, 31, 23, 59], [[true]], [[true]]] [[call]] [[BIS_fnc_setDate]];</code> | |x1= <code>[<nowiki/>[2035, 12, 31, 23, 59], [[true]], [[true]]] [[call]] [[BIS_fnc_setDate]];</code> | ||
Line 25: | Line 25: | ||
|x2= <code>[3.5] [[call]] [[BIS_fnc_setDate]];</code> | |x2= <code>[3.5] [[call]] [[BIS_fnc_setDate]];</code> | ||
| [[date]], [[setDate]], [[skipTime]] | |seealso= [[date]], [[setDate]], [[skipTime]] | ||
}} | }} |
Revision as of 23:33, 2 February 2021
Description
- Description:
- Instantly set date and share it across network with optional transition effect.
- Execution:
- call
- Groups:
- Environment
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