getDLCs: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<code>([^ ]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^ ]*)<\/code>" to "<code>$1$2$3</code>")
m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>")
Line 19: Line 19:
|x1= <sqf>_ownedDLCs = getDLCs 1;</sqf>
|x1= <sqf>_ownedDLCs = getDLCs 1;</sqf>


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


|seealso= [[getObjectDLC]] [[getPersonUsedDLCs]] [[getMissionDLCs]] [[getDLCAssetsUsageByName]] [[getDLCAssetsUsage]] [[getAssetDLCInfo]]
|seealso= [[getObjectDLC]] [[getPersonUsedDLCs]] [[getMissionDLCs]] [[getDLCAssetsUsageByName]] [[getDLCAssetsUsage]] [[getAssetDLCInfo]]

Revision as of 11:23, 13 May 2022

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 or on the Forums.
Only post proven facts here! Add Note
Posted on April 7, 2015 - 20:27 (UTC)
Benargee
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.