BIS fnc setDate: Difference between revisions
Jump to navigation
Jump to search
m (updated example two to be exactly as the image shows) |
m (Added some for info) |
||
Line 9: | Line 9: | ||
|descr= Instantly set date and share it across network with optional transition effect. [[File:BIS_fnc_setDate.jpg|right|300px]] | |descr= Instantly set date and share it across network with optional transition effect. [[File:BIS_fnc_setDate.jpg|right|300px]] | ||
|s1= [ | |s1= [value, global, transition] call [[BIS_fnc_setDate]] | ||
|p1= | |p1= value: [[Number]] or [[Array]] | ||
* [[Number]] - | |||
* [[Array]] in format [[Date]] - | * [[Number]] - Hours to skip. To show exactly ''30 minutes later'' put {{ic|30/60}}. {{ic|0.5}} will show ''29 minutes later'' | ||
* [[Array]] in format [[Date]] - Date | |||
|p2= global: [[Boolean]] - (Optional, default [[true]]) [[true]] for global execution | |p2= global: [[Boolean]] - (Optional, default [[true]]) [[true]] for global execution | ||
Line 24: | Line 26: | ||
|x2= <code>[4, [[true]], [[true]]] [[call]] [[BIS_fnc_setDate]]; {{cc|Skip 4 hours. Same as image in description}}</code> | |x2= <code>[4, [[true]], [[true]]] [[call]] [[BIS_fnc_setDate]]; {{cc|Skip 4 hours. Same as image in description}}</code> | ||
|x3= <code>[30 / 60, [[true]], [[true]]] [[call]] [[BIS_fnc_setDate]]; {{cc|Skip 30 minutes and show '''30 minutes later''' message}}</code> | |||
|seealso= [[date]], [[setDate]], [[skipTime]] | |seealso= [[date]], [[setDate]], [[skipTime]] | ||
}} | }} |
Revision as of 09:44, 3 April 2021
Description
- Description:
- Instantly set date and share it across network with optional transition effect.
- Execution:
- call
- Groups:
- Environment
Syntax
- Syntax:
- [value, global, transition] call BIS_fnc_setDate
- Parameters:
- value: Number or Array
- Number - Hours to skip. To show exactly 30 minutes later put
30/60
.0.5
will show 29 minutes later
- Number - Hours to skip. To show exactly 30 minutes later put
- 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:
[4, true, true] call BIS_fnc_setDate; // Skip 4 hours. Same as image in description
- Example 3:
[30 / 60, true, true] call BIS_fnc_setDate; // Skip 30 minutes and show 30 minutes later message
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