addCuratorAddons: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]3(\|.*)]]" to "{{GameCategory|arma3|Scripting Commands}}")
m (Text replacement - "<sqf>([^↵][^\/]*↵[^\/]*)<\/sqf>" to "<sqf> $1 </sqf>")
 
(30 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| arma3 |Game name=
|game1= arma3
|version1= 1.16


|1.16|Game version=
|serverExec= server


|serverExec= server|=
|gr1= Curator


|gr1= Curator |GROUP1=
|descr= Allow curator use of given addon.
____________________________________________________________________________________________


| Allow curator use of given addon. |DESCRIPTION=
|s1= curatorObj [[addCuratorAddons]] addons
____________________________________________________________________________________________


| curatorObj '''addCuratorAddons''' addons |SYNTAX=
|p1= curatorObj: [[Object]] - curator module.


|p1= curatorObj: [[Object]] - Curator module.  |PARAMETER1= 
|p2= addons: [[Array]] of CfgPatches classes


|p2= addons: [[Array]] of CfgPatches classes  |PARAMETER2= 
|r1= [[Nothing]]


| [[Nothing]] |RETURNVALUE=
|x1= <sqf>curatorObj addCuratorAddons ["A3_Armor_F_AMV","A3_Armor_F_Panther"];</sqf>


|x2= <sqf>curatorObj addCuratorAddons ["A3_Modules_F_Curator_Lightning"];</sqf>


|x1= <code>curatorObj [[addCuratorAddons]] ["A3_Armor_F_AMV","A3_Armor_F_Panther"];</code>|EXAMPLE1=
|x3= Addons can be stacked:
 
<sqf>
|x2= <code>curatorObj [[addCuratorAddons]] ["A3_Modules_F_Curator_Lightning"];</code>|EXAMPLE2=
curatorObj addCuratorAddons ["A3_Armor_F_AMV","A3_Armor_F_Panther"];
 
curatorObj addCuratorAddons ["A3_Modules_F_Curator_Lightning"];
|x3= Addons can be stacked:<code>curatorObj [[addCuratorAddons]] ["A3_Armor_F_AMV","A3_Armor_F_Panther"];
diag_log curatorAddons curatorObj;
curatorObj [[addCuratorAddons]] ["A3_Modules_F_Curator_Lightning"];
</sqf>
[[diag_log]] [[curatorAddons]] curatorObj;</code>
<br>
<br>
<code>[
<sqf>
[
"A3_Armor_F_AMV",
"A3_Armor_F_AMV",
"A3_Armor_F_Panther",
"A3_Armor_F_Panther",
"A3_Modules_F_Curator_Lightning"
"A3_Modules_F_Curator_Lightning"
]</code>|EXAMPLE3=
]
 
</sqf>
____________________________________________________________________________________________


| [[Curator]], [[removeCuratorAddons]], [[removeAllCuratorAddons]], [[curatorAddons]] |SEEALSO=
|seealso= [[Arma 3: Curator]] [[removeCuratorAddons]] [[removeAllCuratorAddons]] [[curatorAddons]]


| mp= Can be executed only on server |MPBEHAVIOUR=
|mp= Can be executed only on server
____________________________________________________________________________________________
}}
}}
<h3 style='display:none'>Notes</h3>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style='display:none'>Bottom Section</h3>
{{GameCategory|arma3|New_Scripting_Commands_List}}
{{GameCategory|arma3|Scripting Commands}}
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Latest revision as of 21:37, 2 September 2024

Hover & click on the images for description

Description

Description:
Allow curator use of given addon.
Multiplayer:
Can be executed only on server
Groups:
Curator

Syntax

Syntax:
curatorObj addCuratorAddons addons
Parameters:
curatorObj: Object - curator module.
addons: Array of CfgPatches classes
Return Value:
Nothing

Examples

Example 1:
curatorObj addCuratorAddons ["A3_Armor_F_AMV","A3_Armor_F_Panther"];
Example 2:
curatorObj addCuratorAddons ["A3_Modules_F_Curator_Lightning"];
Example 3:
Addons can be stacked:
curatorObj addCuratorAddons ["A3_Armor_F_AMV","A3_Armor_F_Panther"]; curatorObj addCuratorAddons ["A3_Modules_F_Curator_Lightning"]; diag_log curatorAddons curatorObj;

[ "A3_Armor_F_AMV", "A3_Armor_F_Panther", "A3_Modules_F_Curator_Lightning" ]

Additional Information

See also:
Arma 3: Curator removeCuratorAddons removeAllCuratorAddons curatorAddons

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