BIS fnc activateAddons: Difference between revisions
Jump to navigation
Jump to search
Freddo3000 (talk | contribs) m (Add server exec tag) |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Function|Comments= | {{Function|Comments= | ||
| arma3 |Game name= | | arma3 |Game name= | ||
Line 9: | Line 8: | ||
|serverExec= server | |serverExec= server | ||
| Activate addons upon mission start. Doesn't work when the mission is already running.|DESCRIPTION= | | Activate addons upon mission start. Doesn't work when the mission is already running.|DESCRIPTION= | ||
| [addons] call [[BIS_fnc_activateAddons]] |SYNTAX= | | [addons] call [[BIS_fnc_activateAddons]] |SYNTAX= | ||
|p1= addons: [[Array]] of [[String|strings]] - Addon classes from CfgPatches or object classes from CfgVehicles|PARAMETER1= | |p1= addons: [[Array]] of [[String|strings]] - Addon classes from CfgPatches or object classes from CfgVehicles|PARAMETER1= | ||
| [[Array]] of [[String|strings]] - Activated addons|RETURNVALUE= | | [[Array]] of [[String|strings]] - Activated addons|RETURNVALUE= | ||
|x1= <code>["class_1","class_2"] [[call]] [[BIS_fnc_activateAddons]];</code> |= | |x1= <code>["class_1","class_2"] [[call]] [[BIS_fnc_activateAddons]];</code> |= | ||
| [[activateAddons]], [[unitAddons]], [[activatedAddons]] |SEEALSO= | | [[activateAddons]], [[unitAddons]], [[activatedAddons]] |SEEALSO= |
Revision as of 22:37, 16 January 2021
Description
- Description:
- Activate addons upon mission start. Doesn't work when the mission is already running.
- Execution:
- call
- Groups:
- Systems
Syntax
- Syntax:
- [addons] call BIS_fnc_activateAddons
- Parameters:
- addons: Array of strings - Addon classes from CfgPatches or object classes from CfgVehicles
- Return Value:
- Array of strings - Activated addons
Examples
- Example 1:
["class_1","class_2"] call BIS_fnc_activateAddons;
Additional Information
- See also:
- activateAddonsunitAddonsactivatedAddons
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