getDLCs: Difference between revisions
m (see also) |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
| (42 intermediate revisions by 8 users not shown) | |||
| Line 1: | Line 1: | ||
{{ | {{RV|type=command | ||
| arma3 |= | |game1= arma3 | ||
|version1= 1.16 | |||
| | |gr1= DLC | ||
| Returns array of | |descr= Returns array of app IDs of DLCs. | ||
| | |s1= [[getDLCs]] filter | ||
|p1= | |p1= filter: [[Number]] - can be: | ||
* 0 - all | |||
* 1 - owned | |||
* 2 - not owned | |||
| [[Array]] - array of numbers | |r1= [[Array]] - array of DLC numbers. | ||
|x1= <sqf>_ownedDLCs = getDLCs 1;</sqf> | |||
| | |x2= <sqf>_hasKarts = (288520 in (getDLCs 1));</sqf> | ||
| | |seealso= [[getObjectDLC]] [[getPersonUsedDLCs]] [[getMissionDLCs]] [[getDLCAssetsUsageByName]] [[getDLCAssetsUsage]] [[getAssetDLCInfo]] | ||
}} | }} | ||
{{Note | |||
|user= Benargee | |||
|timestamp= 20150407202700 | |||
|text= App ID can be found in CfgMods. Here is an example path from zeus using the Splendid Config Viewer: | |||
<sqf>configFile >> "CfgMods" >> "Curator" >> "appId"</sqf> | |||
< | |||
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. | ||
}} | |||
Latest revision as of 16:32, 10 November 2025
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:
- Example 2:
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
- 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:
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.