BIS fnc mirrorCuratorSettings: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\| *(\[.*)(call|spawn)(.*) " to "|s1=$1$2$3 ")
m (Some wiki formatting)
Line 8: Line 8:
|serverExec= server
|serverExec= server


| Mirrors settings from one curator to another.
|descr= Mirrors settings from one curator to another.


|s1=[from,to,modes,shareType] call [[BIS_fnc_mirrorCuratorSettings]]
|s1= [from, to, modes, shareType] call [[BIS_fnc_mirrorCuratorSettings]]


|p1= from: [[Object]] or [[Array]] of objects - Curators(s) from which settings are taken
|p1= from: [[Object]] or [[Array]] of objects - Curators(s) from which settings are taken
|p2= to: [[Object]] or [[Array]] of objects - Curators(s) to which settings are applied to
|p2= to: [[Object]] or [[Array]] of objects - Curators(s) to which settings are applied to
|p3= modes: [[Array]] of [[Strings]] - Copy modes, can be:
|p3= modes: [[Array]] of [[Strings]] - Copy modes, can be:
*"addons"
* "addons"
*"objects"
* "objects"
*"coefs"
* "coefs"
**All three modes can be combined
All three modes can be combined.


|p4= shareType: [[Boolean]] - [[true]] to share settings both ways, [[false]] to make second curator slave to the first one
|p4= shareType: [[Boolean]] - [[true]] to share settings both ways, [[false]] to make second curator slave to the first one
Line 24: Line 26:
|r1= [[Boolean]]
|r1= [[Boolean]]


|x1= <code>[  
|x1= <code>[
    [curator_1,curator_2],  
[curator_1, curator_2],  
[curator_3,curator_4],  
[curator_3, curator_4],  
["addons","objects","coefs"]  
["addons", "objects", "coefs"]  
] [[call]] [[BIS_fnc_mirrorCuratorSettings]];</code>
] [[call]] [[BIS_fnc_mirrorCuratorSettings]];</code>


|seealso= [[Arma 3: Curator]]
|seealso= [[Arma 3: Curator]]
}}
}}

Revision as of 18:50, 9 June 2021

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