addCuratorAddons: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(server exec)
m (Text replacement - "(\|[pr][0-9]+ *= *[^-]+) *- *C([a-eg-z])" to "$1 - c$2")
 
(42 intermediate revisions by 3 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


|exec= server|=
|gr1= Curator
____________________________________________________________________________________________


| Allow curator use of given addon. |= Description
|descr= Allow curator use of given addon.
____________________________________________________________________________________________


| curatorObj '''addCuratorAddons''' addons |= Syntax
|s1= curatorObj [[addCuratorAddons]] addons


|p1= curatorObj: [[Object]] - Curator module. |= PARAMETER1 
|p1= curatorObj: [[Object]] - curator module.


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


| [[Nothing]] |= RETURNVALUE
|r1= [[Nothing]]


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


|x1= <code>curatorObj [[addCuratorAddons]] ["A3_Armor_F_AMV","A3_Armor_F_Panther"];</code>|= EXAMPLE1
|x2= <sqf>curatorObj addCuratorAddons ["A3_Modules_F_Curator_Lightning"];</sqf>


|x2= <code>curatorObj [[addCuratorAddons]] ["A3_Modules_F_Curator_Lightning"];</code>|= EXAMPLE2
|x3= Addons can be stacked:
 
<sqf>curatorObj addCuratorAddons ["A3_Armor_F_AMV","A3_Armor_F_Panther"];
|x3= Addons can be stacked:<code>curatorObj [[addCuratorAddons]] ["A3_Armor_F_AMV","A3_Armor_F_Panther"];
curatorObj addCuratorAddons ["A3_Modules_F_Curator_Lightning"];
curatorObj [[addCuratorAddons]] ["A3_Modules_F_Curator_Lightning"];
diag_log curatorAddons curatorObj;</sqf>
[[diag_log]] [[curatorAddons]] curatorObj;</code>
<br>
<br/>
<sqf>[
<code>[
"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>


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


| [[Curator]], [[removeCuratorAddons]], [[removeAllCuratorAddons]], [[curatorAddons]] |= SEEALSO
|mp= Can be executed only on server
 
| mp= Can be executed only on server |= MPBEHAVIOUR
____________________________________________________________________________________________
}}
}}
<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:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Command Group: Curator|{{uc:{{PAGENAME}}}}]]

Latest revision as of 15:00, 8 November 2023

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