BIS fnc activateAddons: 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|[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 \("server" o...) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
| arma3 | | arma3 | ||
|1.00 | |1.00 | ||
|gr1 = Systems | |gr1 = Systems | ||
|serverExec= server | |serverExec= server | ||
| Activate addons upon mission start. Doesn't work when the mission is already running. | | Activate addons upon mission start. Doesn't work when the mission is already running. | ||
| [addons] call [[BIS_fnc_activateAddons]] | | [addons] call [[BIS_fnc_activateAddons]] | ||
|p1= addons: [[Array]] of [[String|strings]] - Addon classes from CfgPatches or object classes from CfgVehicles | |p1= addons: [[Array]] of [[String|strings]] - Addon classes from CfgPatches or object classes from CfgVehicles | ||
| [[Array]] of [[String|strings]] - Activated addons | | [[Array]] of [[String|strings]] - Activated addons | ||
|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]] | | [[activateAddons]], [[unitAddons]], [[activatedAddons]] | ||
}} | }} | ||
Revision as of 22:36, 17 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