getDLCs: 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 6: Line 5:
|1.16|Game version=
|1.16|Game version=
|gr1= DLC |GROUP1=
|gr1= DLC |GROUP1=
____________________________________________________________________________________________


| Returns array of appIDs of DLCs.|DESCRIPTION=
| Returns array of appIDs of DLCs.|DESCRIPTION=
____________________________________________________________________________________________


| [[getDLCs]] filter |SYNTAX=
| [[getDLCs]] filter |SYNTAX=
Line 23: Line 20:


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


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

Revision as of 02:18, 17 January 2021

Hover & click on the images for description

Description

Description:
Returns array of appIDs 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 (see above)

Examples

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

Additional Information

See also:
getObjectDLCgetPersonUsedDLCsgetMissionDLCsgetDLCAssetsUsageByNamegetDLCAssetsUsagegetAssetDLCInfo

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