getDLCs: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " <h3 style='display:none'>Bottom Section</h3>" to "")
m (Text replacement - " (\|[pr][0-9]+ *= *[^-]+) *- *A([a-z])" to " $1 - a$2")
 
(20 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command
{{RV|type=command


| arma3
|game1= arma3
|version1= 1.16


|1.16
|gr1= DLC
|gr1= DLC


| Returns array of appIDs of DLCs.
|descr= Returns array of app IDs of DLCs.


| [[getDLCs]] filter
|s1= [[getDLCs]] filter


|p1= filter: [[Number]] - can be:<br>
|p1= filter: [[Number]] - can be:
0 - all<br>
* 0 - all
1 - owned<br>
* 1 - owned
2 - not owned.<br>
* 2 - not owned


| [[Array]] - array of DLC numbers (see above)
|r1= [[Array]] - array of DLC numbers.


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


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


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


<!-- CONTINUE Notes -->
<dl class="command_description">
<dl class="command_description">
<dd class="notedate">Posted on April 7, 2015 - 20:27 (UTC)</dd>
 
<dt></dt>
<dd class="notedate">Posted on 2015-04-07 - 20:27 (UTC)</dd>
<dt class="note">[[User:Benargee|Benargee]]</dt>
<dt class="note">[[User:Benargee|Benargee]]</dt>
<dd class="note">
<dd class="note">
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:
App ID can be found in CfgMods. Here is an example path from zeus using the Splendid Config Viewer:
<code>[[configFile]] >> "CfgMods" >> "Curator" >> "appId"</code>
<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.
</dd>
</dd>
</dl>
</dl>
<!-- DISCONTINUE Notes -->
{{GameCategory|arma3|New Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Latest revision as of 12:40, 8 November 2023

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 2015-04-07 - 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.