getDLCs: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| arma3 | | arma3 | ||
|1.16 | |1.16 | ||
|gr1= DLC | |gr1= DLC | ||
| Returns array of appIDs of DLCs. | | Returns array of appIDs of DLCs. | ||
| [[getDLCs]] filter | | [[getDLCs]] filter | ||
|p1= filter: [[Number]] - can be:<br> | |p1= filter: [[Number]] - can be:<br> | ||
0 - all<br> | 0 - all<br> | ||
1 - owned<br> | 1 - owned<br> | ||
2 - not owned.<br> | 2 - not owned.<br> | ||
| [[Array]] - array of DLC numbers (see above) | | [[Array]] - array of DLC numbers (see above) | ||
|x1= <code>_ownedDLCs = [[getDLCs]] 1;</code> | |x1= <code>_ownedDLCs = [[getDLCs]] 1;</code> | ||
|x2= <code>_hasKarts = (288520 [[in]] ([[getDLCs]] 1));</code> | |x2= <code>_hasKarts = (288520 [[in]] ([[getDLCs]] 1));</code> | ||
| [[getObjectDLC]], [[getPersonUsedDLCs]], [[getMissionDLCs]], [[getDLCAssetsUsageByName]], [[getDLCAssetsUsage]], [[getAssetDLCInfo]] | | [[getObjectDLC]], [[getPersonUsedDLCs]], [[getMissionDLCs]], [[getDLCAssetsUsageByName]], [[getDLCAssetsUsage]], [[getAssetDLCInfo]] | ||
}} | }} | ||
Revision as of 00:37, 18 January 2021
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
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.