getDLCs: Difference between revisions

From Bohemia Interactive Community
(see also)
m (Some wiki formatting)
 
(31 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| arma3 |Game name=
|game1= arma3
|version1= 1.16


|1.16|Game version=
|gr1= DLC
____________________________________________________________________________________________


| Returns array of appIDs of DLCs. See [[:Category:Command Group: DLC|DLC list]]. |DESCRIPTION=
|descr= Returns array of app IDs of DLCs.
____________________________________________________________________________________________


| [[getDLCs]] filter |SYNTAX=
|s1= [[getDLCs]] filter


|p1= filter: [[Number]] - can be:<br>
|p1= filter: [[Number]] - can be:
0 - all<br>
* 0 - all
1 - owned<br>
* 1 - owned
2 - not owned.<br> |PARAMETER1=
* 2 - not owned


| [[Array]] - array of DLC numbers (see above) |RETURNVALUE=
|r1= [[Array]] - array of DLC numbers.


|x1= <code>_ownedDLCs = [[getDLCs]] 1;</code>|EXAMPLE1=
|x1= <sqf>_ownedDLCs = getDLCs 1;</sqf>


|x2= <code>_hasKarts = (288520 [[in]] ([[getDLCs]] 1));</code>|EXAMPLE2=
|x2= <sqf>_hasKarts = (288520 in (getDLCs 1));</sqf>
____________________________________________________________________________________________


| [[getObjectDLC]], [[getPersonUsedDLCs]], [[getMissionDLCs]], [[getDLCAssetsUsageByName]], [[getDLCAssetsUsage]], [[getAssetDLCInfo]] |SEEALSO=
|seealso= [[getObjectDLC]] [[getPersonUsedDLCs]] [[getMissionDLCs]] [[getDLCAssetsUsageByName]] [[getDLCAssetsUsage]] [[getAssetDLCInfo]]
}}
}}


<h3 style='display:none'>Notes</h3>
{{Note
<!-- CONTINUE Notes -->
|user= Benargee
<dl class="command_description">
|timestamp= 20150407202700
<dd class="notedate">Posted on April 7, 2015 - 20:27 (UTC)</dd>
|text= App ID can be found in CfgMods. Here is an example path from zeus using the Splendid Config Viewer:
<dt class="note">[[User:Benargee|Benargee]]</dt>
<sqf>configFile >> "CfgMods" >> "Curator" >> "appId"</sqf>
<dd class="note">
To add to the note above, app ID can be found in CfgMods. Here is an example path from zeus using the Splendid Config Viewer:
<code>[[configFile]] >> "CfgMods" >> "Curator" >> "appId"</code>
This method can be used to find app IDs without having to find a list like the one above.<br>
This method can be used to find app IDs without having to find a list like the one above.<br>
I am also pretty sure you are able to define your own app ID for your own mods using this method.
I am also pretty sure you are able to define your own app ID for your own mods using this method.
</dd>
}}
</dl>
<!-- DISCONTINUE Notes -->
 
<h3 style='display:none'>Bottom Section</h3>
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Command Group: DLC|{{uc:{{PAGENAME}}}}]]

Latest revision as of 16:32, 10 November 2025

Hover & click on the images for description

Description

Description:
Returns array of app IDs of DLCs.
Groups:
DLC

Syntax

Syntax:
getDLCs filter
Parameters:
filter: Number - can be:
  • 0 - all
  • 1 - owned
  • 2 - not owned
Return Value:
Array - array of DLC numbers.

Examples

Example 1:
_ownedDLCs = getDLCs 1;
Example 2:
_hasKarts = (288520 in (getDLCs 1));

Additional Information

See also:
getObjectDLC getPersonUsedDLCs getMissionDLCs getDLCAssetsUsageByName getDLCAssetsUsage getAssetDLCInfo

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note
Benargee - c
Posted on Apr 07, 2015 - 20:27 (UTC)
App ID can be found in CfgMods. Here is an example path from zeus using the Splendid Config Viewer:
configFile >> "CfgMods" >> "Curator" >> "appId"
This method can be used to find app IDs without having to find a list like the one above.
I am also pretty sure you are able to define your own app ID for your own mods using this method.