BIS fnc activateAddons: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[[cC]ategory:\{\{Name\|arma3\}\}: [fF]unctions\|\{\{uc:[a-z A-Z_]*\}\}\]\]" to "")
m (Text replacement - "strings" to "Strings")
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{RV|type=function
{{RV|type=function


| arma3
|game1= arma3
|version1= 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.
|descr= Activate addons upon mission start. Doesn't work when the mission is already running.


| [addons] call [[BIS_fnc_activateAddons]]
|s1= [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]]s - addon classes from CfgPatches or object classes from CfgVehicles


| [[Array]] of [[String|strings]] - Activated addons
|r1= [[Array]] of [[String]]s - activated addons


|x1= <code>["class_1","class_2"] [[call]] [[BIS_fnc_activateAddons]];</code>
|x1= <sqf>["class_1","class_2"] call BIS_fnc_activateAddons;</sqf>


| [[activateAddons]], [[unitAddons]], [[activatedAddons]]
|seealso= [[activateAddons]] [[unitAddons]] [[activatedAddons]]
}}
}}

Latest revision as of 14:48, 8 November 2023

Hover & click on the images for description

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:
activateAddons unitAddons activatedAddons

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