addCuratorAddons: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 23: | Line 23: | ||
|x3= Addons can be stacked: | |x3= Addons can be stacked: | ||
< | <sqf>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;</ | diag_log curatorAddons curatorObj;</sqf> | ||
<br> | <br> | ||
< | <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" | ||
]</ | ]</sqf> | ||
|seealso= [[Arma 3: Curator]] [[removeCuratorAddons]] [[removeAllCuratorAddons]] [[curatorAddons]] | |seealso= [[Arma 3: Curator]] [[removeCuratorAddons]] [[removeAllCuratorAddons]] [[curatorAddons]] |
Revision as of 16:47, 13 May 2022
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