addCuratorAddons: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " *\|= " to " ") |
Lou Montana (talk | contribs) 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 | {{Command | ||
| arma3 | | arma3 | ||
|1.16 | |1.16 | ||
|serverExec= server | |serverExec= server | ||
|gr1= Curator | |gr1= Curator | ||
| Allow curator use of given addon. | | Allow curator use of given addon. | ||
| curatorObj '''addCuratorAddons''' addons | | curatorObj '''addCuratorAddons''' addons | ||
|p1= curatorObj: [[Object]] - Curator module. | |p1= curatorObj: [[Object]] - Curator module. | ||
|p2= addons: [[Array]] of CfgPatches classes | |p2= addons: [[Array]] of CfgPatches classes | ||
| [[Nothing]] | | [[Nothing]] | ||
|x1= <code>curatorObj [[addCuratorAddons]] ["A3_Armor_F_AMV","A3_Armor_F_Panther"];</code> | |x1= <code>curatorObj [[addCuratorAddons]] ["A3_Armor_F_AMV","A3_Armor_F_Panther"];</code> | ||
|x2= <code>curatorObj [[addCuratorAddons]] ["A3_Modules_F_Curator_Lightning"];</code> | |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> | ]</code> | ||
| [[Curator]], [[removeCuratorAddons]], [[removeAllCuratorAddons]], [[curatorAddons]] | | [[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
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
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