activatedAddons: Difference between revisions

From Bohemia Interactive Community
m (Text replacement - ">Posted on March ([0-9]{2})[ a-zA-Z]*, ([0-9]{4})" to ">Posted on $2-03-$1")
mNo edit summary
 
Line 10: Line 10:
|s1= '''activatedAddons'''
|s1= '''activatedAddons'''


|r1= [[Array]]
|r1= [[Array]] of [[String]]s


|x1= <sqf>_addons = activatedAddons;</sqf>
|x1= <sqf>_addons = activatedAddons;</sqf>

Latest revision as of 08:35, 1 January 2026

Hover & click on the images for description

Description

Description:
Returns a list of all activated addons.
Groups:
Mods and Addons

Syntax

Syntax:
activatedAddons
Return Value:
Array of Strings

Examples

Example 1:
_addons = activatedAddons;

Additional Information

See also:
activateAddons

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note
Posted on 2014-03-28 - 20:21
Tankbuster
This command can return a large array, often too large to be diag_log'd or hinted. At the time of writing, my game returned an array with 389 elements. The code below will ignore all the BI addons (they start with a3_) and writes the rest (ie, all your custom addons) to the RPT.
{if (! (["a3_", _x] call BIS_fnc_inString)) then {diag_log _x;} } forEach activatedAddons;