activatedAddons: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\{\{GameCategory\|(arma[0123])\|New[ _]Scripting[ _]Commands[ _]List\}\}" to "{{GameCategory|$1|New Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| arma3 |Game name=
| arma3 |Game name=
Line 7: Line 6:


|gr1 = Mods and Addons |GROUP1=
|gr1 = Mods and Addons |GROUP1=
____________________________________________________________________________________________


| Returns a list of all activated addons. |DESCRIPTION=
| Returns a list of all activated addons. |DESCRIPTION=
____________________________________________________________________________________________


| '''activatedAddons''' |SYNTAX=
| '''activatedAddons''' |SYNTAX=
Line 19: Line 16:
|x1= <code>_addons = '''activatedAddons''';</code>|EXAMPLE1=
|x1= <code>_addons = '''activatedAddons''';</code>|EXAMPLE1=


____________________________________________________________________________________________


| [[activateAddons]] |SEEALSO=  
| [[activateAddons]] |SEEALSO=  


| |MPBEHAVIOUR=  
| |MPBEHAVIOUR=  
____________________________________________________________________________________________
}}
}}



Revision as of 00:09, 17 January 2021

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

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 or on the Forums.
Only post proven facts here! Add Note

Notes

Posted on March 28, 2014 - 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;

Bottom Section