addCuratorAddons: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " *\|= " to " ")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("serv...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| arma3 |Game name=
| arma3


|1.16|Game version=
|1.16


|serverExec= server
|serverExec= server


|gr1= Curator |GROUP1=
|gr1= Curator


| Allow curator use of given addon. |DESCRIPTION=
| Allow curator use of given addon.


| curatorObj '''addCuratorAddons''' addons |SYNTAX=
| 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=
| [[Nothing]]




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


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


|x3= Addons can be stacked:<code>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"];
Line 32: Line 32:
"A3_Armor_F_Panther",
"A3_Armor_F_Panther",
"A3_Modules_F_Curator_Lightning"
"A3_Modules_F_Curator_Lightning"
]</code>|EXAMPLE3=
]</code>




| [[Curator]], [[removeCuratorAddons]], [[removeAllCuratorAddons]], [[curatorAddons]] |SEEALSO=
| [[Curator]], [[removeCuratorAddons]], [[removeAllCuratorAddons]], [[curatorAddons]]


| mp= Can be executed only on server |MPBEHAVIOUR=  
| mp= Can be executed only on server |MPBEHAVIOUR=  

Revision as of 00:02, 18 January 2021

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:
CuratorremoveCuratorAddonsremoveAllCuratorAddonscuratorAddons

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

Notes

Bottom Section