BIS fnc mirrorCuratorSettings: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Generated by BIS_fnc_exportFunctionsToWiki)
 
m (Text replacement - "Strings" to "Strings")
 
(31 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{RV|type=function


{{Function|= Comments
|game1= arma3
____________________________________________________________________________________________
|version1= 1.16


| arma3 |= Game name
|gr1= Curator


|1.00|= Game version
|serverExec= server
____________________________________________________________________________________________


| <pre>/*
|descr= Mirrors settings from one curator to another.


Description:
|s1= [from, to, modes, shareType] call [[BIS_fnc_mirrorCuratorSettings]]
Mirror settings from once curator to another


Parameter(s):
|p1= from: [[Object]] or [[Array]] of objects - curators(s) from which settings are taken
0: OBJECT or ARRAY of OBJECTs - curators(s) from which settings are taken from
1: OBJECT or ARRAY of OBJECTs - curators(s) to which settings are applied to
2: ARRAY of STRINGs - copied modes, can be "addons", "objects" and/or "coefs"
3: BOOL - true to share settings both ways, false to make second curator slave to the first one


Returns:
|p2= to: [[Object]] or [[Array]] of objects - curators(s) to which settings are applied to
BOOL
*/


|p3= modes: [[Array]] of [[String]]s - copy modes, can be:
* "addons"
* "objects"
* "coefs"
All three modes can be combined.


</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
|p4= shareType: [[Boolean]] - [[true]] to share settings both ways, [[false]] to make second curator slave to the first one
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_mirrorCuratorSettings]]; --> |= Syntax
|r1= [[Boolean]]


|p1= |= Parameter 1
|x1= <sqf>[
 
[curator_1, curator_2],
| |= Return value
[curator_3, curator_4],
____________________________________________________________________________________________
["addons", "objects", "coefs"]
 
] call BIS_fnc_mirrorCuratorSettings;</sqf>
|x1= <code></code> |=
____________________________________________________________________________________________
 
| |= See also


|seealso= [[Arma 3: Curator]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Curator|{{uc:mirrorCuratorSettings}}]]
[[Category:Functions|{{uc:mirrorCuratorSettings}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:mirrorCuratorSettings}}]]

Latest revision as of 22:51, 16 February 2024

Hover & click on the images for description

Description

Description:
Mirrors settings from one curator to another.
Execution:
call
Groups:
Curator

Syntax

Syntax:
[from, to, modes, shareType] call BIS_fnc_mirrorCuratorSettings
Parameters:
from: Object or Array of objects - curators(s) from which settings are taken
to: Object or Array of objects - curators(s) to which settings are applied to
modes: Array of Strings - copy modes, can be:
  • "addons"
  • "objects"
  • "coefs"
All three modes can be combined.
shareType: Boolean - true to share settings both ways, false to make second curator slave to the first one
Return Value:
Boolean

Examples

Example 1:
[ [curator_1, curator_2], [curator_3, curator_4], ["addons", "objects", "coefs"] ] call BIS_fnc_mirrorCuratorSettings;

Additional Information

See also:
Arma 3: Curator

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