activatedAddons: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Bot: Replacing category Scripting Commands Arma 3 with Arma 3: Scripting Commands)
m (Text replacement - ">Posted on March ([0-9]{2})[ a-zA-Z]*, ([0-9]{4})" to ">Posted on $2-03-$1")
 
(46 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma3 |= Game name
|game1= arma3
|version1= 1.14


|1.14|= Game version
|gr1= Mods and Addons
____________________________________________________________________________________________


| Returns a list of all activated addons. |= Description
|descr= Returns a list of all activated addons.
____________________________________________________________________________________________


| '''activatedAddons''' |= Syntax
|s1= '''activatedAddons'''


| [[Array]] |= RETURNVALUE
|r1= [[Array]]


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


|x1= <code>_addons = '''activatedAddons''';</code>|= EXAMPLE1
|seealso= [[activateAddons]]
 
}}
____________________________________________________________________________________________
 
| [[activateAddons]] |= SEEALSO


| |= MPBEHAVIOUR
<dl class="command_description">
____________________________________________________________________________________________
}}


<h3 style='display:none'>Notes</h3>
<dt></dt>
<dl class='command_description'>
<dd class="notedate">Posted on 2014-03-28 - 20:21</dd>
<!-- Note Section BEGIN -->
<dt class="note">[[User:Tankbuster|Tankbuster]]</dt>
<dd class="notedate">Posted on March 28, 2014 - 20:21
<dd class="note">
<dt class="note">'''[[User:Tankbuster|Tankbuster]]'''<dd class="note">
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.
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.
<code>{[[if]] (! (["a3_", _x] [[call]] [[BIS_fnc_inString]])) [[then]] {[[diag_log]] _x;}  } [[forEach]] [[activatedAddons]];</code>
<sqf>{if (! (["a3_", _x] call BIS_fnc_inString)) then {diag_log _x;}  } forEach activatedAddons;</sqf>


<!-- Note Section END -->
</dl>
</dl>
<h3 style='display:none'>Bottom Section</h3>
[[Category:Arma 3: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]
[[Category:Arma 3: Scripting Commands]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Command Group: Curator|{{uc:{{PAGENAME}}}}]]

Latest revision as of 23:06, 13 May 2023

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
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;