activatedAddons: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "{{Command " to "{{RV|type=command ") |
Lou Montana (talk | contribs) m (Text replacement - ">Posted on March ([0-9]{2})[ a-zA-Z]*, ([0-9]{4})" to ">Posted on $2-03-$1") |
||
(25 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=command | {{RV|type=command | ||
| arma3 | |game1= arma3 | ||
|version1= 1.14 | |||
| | |gr1= Mods and Addons | ||
| | |descr= Returns a list of all activated addons. | ||
| | |s1= '''activatedAddons''' | ||
| | |r1= [[Array]] | ||
| | |x1= <sqf>_addons = activatedAddons;</sqf> | ||
| | |seealso= [[activateAddons]] | ||
}} | |||
<dl class="command_description"> | |||
< | <dt></dt> | ||
< | <dd class="notedate">Posted on 2014-03-28 - 20:21</dd> | ||
<dd class="notedate">Posted on | <dt class="note">[[User:Tankbuster|Tankbuster]]</dt> | ||
<dt class="note">[[User:Tankbuster|Tankbuster]]<dd class="note"> | <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. | ||
< | <sqf>{if (! (["a3_", _x] call BIS_fnc_inString)) then {diag_log _x;} } forEach activatedAddons;</sqf> | ||
</dl> | </dl> | ||
Latest revision as of 23:06, 13 May 2023
Description
- Description:
- Returns a list of all activated addons.
- Groups:
- Mods and Addons
Syntax
- Syntax:
- activatedAddons
- Return Value:
- Array
Examples
- Example 1:
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.