getDLCs: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Regroup all DLC IDs, comment cleanup)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Returns array of appIDs of DLCs. Use filter param to get specific type of DLCs: <br>
| Returns array of appIDs of DLCs. A list of all official DLCs:
0 - all<br>
* 275700 - [http://store.steampowered.com/app/275700/ Zeus]
1 - owned<br>
* 249860 - Soundtrack
2 - not owned|= Description
* 304400 - [http://store.steampowered.com/app/304400/ DLC Bundle 1]
* 249861 - [http://store.steampowered.com/app/249861/ Maps]
* 249862 - [http://store.steampowered.com/app/249862/ Tactical Guide]
* 288520 - [http://store.steampowered.com/app/288520/ Karts]
* 304380 - [http://store.steampowered.com/app/304380/ Helicopters]
* 332350 - [http://store.steampowered.com/app/332350/ Marksmen]
* '''395180 - [http://store.steampowered.com/app/395180/ Apex]'''
* 612480 - [http://store.steampowered.com/app/612480/ DLC Bundle 2]
* 571710 - [http://store.steampowered.com/app/571710/ Laws of War]
* 601670 - [http://store.steampowered.com/app/601670/ Jets]
* 744950 - [http://store.steampowered.com/app/744950/ Tac Ops]
* 798390 - [http://store.steampowered.com/app/798390/ Tanks]
''Thanks to [[User:Sniperwolf572|Sniperwolf572]], [[User:Armitxes|Armitxes]], [[User:Midnighters|Midnighters]] and [[User:HazJ|HazJ]]'' |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''getDLCs''' filter |= Syntax
| '''getDLCs''' filter |= Syntax


|p1=  filter: [[Number]] |=
|p1=  filter: [[Number]] - can be:<br />
 
0 - all<br />
| [[Array]] - array of numbers |= RETURNVALUE
1 - owned<br />
2 - not owned.<br /> |= Parameter 1


| [[Array]] - array of DLC numbers (see above) |= Return value


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


|x2= Is [http://store.steampowered.com/app/288520/ the Karts DLC] ''owned'' by this client?
|x2= <code>_hasKarts = (288520 [[in]] ([[getDLCs]] 1));</code>|= Example 2
<code>[[hintSilent]] [[str]] (288520 [[in]] ([[getDLCs]] 1));</code>|= Example 2
 
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[getObjectDLC]] [[getPersonUsedDLCs]] [[getMissionDLCs]] |= SEEALSO
| [[getObjectDLC]], [[getPersonUsedDLCs]], [[getMissionDLCs]] |= See also
 
|  |= MPBEHAVIOUR
____________________________________________________________________________________________
____________________________________________________________________________________________
}}
}}


<h3 style='display:none'>Notes</h3>
<h3 style='display:none'>Notes</h3>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<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}}}}]]
<!-- CONTINUE Notes -->
<dl class="command_description">
<dd class="notedate">Posted on May 30, 2014 - 18:08 (UTC)</dd>
<dt class="note">'''[[User:Sniperwolf572|Sniperwolf572]]'''</dt>
<dd class="note">
Current list of IDs that correspond to the available DLCs:
<br><br>
275700 - Arma 3 Zeus<br>
249860 - Arma 3 Soundtrack<br>
304400 - Arma 3 DLC Bundle<br>
249861 - Arma 3 Maps<br>
249862 - Arma 3 Tactical Guide<br>
288520 - Arma 3 Karts<br>
304380 - Arma 3 Helicopters<br>
332350 - Arma 3 Marksmen
</dd>
</dl>
<!-- DISCONTINUE Notes -->
<!-- CONTINUE Notes -->
<!-- CONTINUE Notes -->
<dl class="command_description">
<dl class="command_description">
Line 77: Line 57:
<!-- DISCONTINUE Notes -->
<!-- DISCONTINUE Notes -->


<!-- CONTINUE Notes -->
<h3 style='display:none'>Bottom Section</h3>
<dl class="command_description">
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
<dd class="notedate">Posted on July 1, 2016 - 17:33 (UTC)</dd>
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
<dt class="note">[[User:Armitxes|Armitxes]]</dt>
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
<dd class="note">The required DLC-IDs equal to the Steam App-IDs of each obtainable DLC.<br>
To extend Sniperwolfs list:<br>
<br>
395180 - Arma 3 Apex
</dd>
</dl>
<!-- DISCONTINUE Notes -->
 
<!-- CONTINUE Notes -->
<dl class="command_description">
<dd class="notedate">Posted on October 30, 2017 - 18:20 (UTC)</dd>
<dt class="note">[[User:Midnighters|Midnighters]]</dt>
<dd class="note">
More dlc
<br>
Arma 3 Laws of War 571710
<br>
Arma 3 Jets        601670
</dd>
</dl>
<!-- DISCONTINUE Notes -->
 
<!-- CONTINUE Notes -->
<dl class="command_description">
<dd class="notedate">Posted on April 17, 2018 - 01:35 (UTC)</dd>
<dt class="note">[[User:HazJ|HazJ]]</dt>
<dd class="note">
Even more DLC<br>
Tac Ops DLC 744950<br>
Tanks DLC 798390
</dd>
</dl>
<!-- DISCONTINUE Notes -->

Revision as of 17:51, 17 April 2018

Hover & click on the images for description

Description

Description:
Returns array of appIDs of DLCs. A list of all official DLCs: Thanks to Sniperwolf572, Armitxes, Midnighters and HazJ
Groups:
Uncategorised

Syntax

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

Examples

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

Additional Information

See also:
getObjectDLCgetPersonUsedDLCsgetMissionDLCs

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 April 7, 2015 - 20:27 (UTC)
Benargee
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: 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.

Bottom Section