addCuratorAddons: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{Command|= Comments ____________________________________________________________________________________________ | arma3 |= Game name |1.16|= Game version _________________...") |
Lou Montana (talk | contribs) m (Text replacement - "<sqf>([^↵][^\/]*↵[^\/]*)<\/sqf>" to "<sqf> $1 </sqf>") |
||
(48 intermediate revisions by 7 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=command | ||
| arma3 |= | |game1= arma3 | ||
|version1= 1.16 | |||
| | |serverExec= server | ||
| | |gr1= Curator | ||
| | |descr= Allow curator use of given addon. | ||
| | |s1= curatorObj [[addCuratorAddons]] addons | ||
| | |p1= curatorObj: [[Object]] - curator module. | ||
| [[ | |p2= addons: [[Array]] of CfgPatches classes | ||
|r1= [[Nothing]] | |||
|x1= < | |x1= <sqf>curatorObj addCuratorAddons ["A3_Armor_F_AMV","A3_Armor_F_Panther"];</sqf> | ||
|x2= <sqf>curatorObj addCuratorAddons ["A3_Modules_F_Curator_Lightning"];</sqf> | |||
| | |x3= Addons can be stacked: | ||
<sqf> | |||
curatorObj addCuratorAddons ["A3_Armor_F_AMV","A3_Armor_F_Panther"]; | |||
curatorObj addCuratorAddons ["A3_Modules_F_Curator_Lightning"]; | |||
diag_log curatorAddons curatorObj; | |||
</sqf> | |||
<br> | |||
<sqf> | |||
[ | |||
"A3_Armor_F_AMV", | |||
"A3_Armor_F_Panther", | |||
"A3_Modules_F_Curator_Lightning" | |||
] | |||
</sqf> | |||
| | |seealso= [[Arma 3: Curator]] [[removeCuratorAddons]] [[removeAllCuratorAddons]] [[curatorAddons]] | ||
|mp= Can be executed only on server | |||
}} | }} | ||
Latest revision as of 21:37, 2 September 2024
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