getMissionDLCs: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "_this" to "_this")
(formatting)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command
|arma3
 
|1.62
|game1= arma3
|arg=
 
|eff=
|version1= 1.62


|gr1= Mission Information
|gr1= Mission Information


|gr2= DLC
|gr2= DLC
| Returns list of DLCs that are used in the mission. List is created only from units listed in mission.sqm and doesn't detect units created by scripts!
| [[getMissionDLCs]]
|p1=
|p2=
| [[Array]] - list of DLCs detected for the mission
|x1= _list = [[getMissionDLCs]]
|seealso= [[getDLCs]], [[getObjectDLC]], [[getPersonUsedDLCs]], [[getDLCAssetsUsageByName]], [[getDLCAssetsUsage]], [[getAssetDLCInfo]]
}}


<dl class='command_description'>
|descr= Returns list of DLCs that are used in the mission. List is created only from units listed in mission.sqm and does not detect units created by scripts!
<!-- BEGIN Note Section -->
 
<!-- For example:
|s1= [[getMissionDLCs]]
<dd class='notedate'>Posted on Month Day, Year - Time (UTC)</dd>
 
<dt class='note'>'''[[User:User Name|User Name]]'''</dt>
|r1= [[Array]] - list of DLCs detected for the mission. Example: {{ic|["Orange","Enoch","Expansion","Heli","Contact","Mark","Argo","Jets"]}}
<dd class='note'>This is an example note. It is true and verifiable, and contains a little code snippet.
<code>[[if]] ([[Magic Variables#this|_this]] == anExample) [[then]] { hint: Leave it here for others to read; };</code></dd>
-->
<!-- END Note Section -->
</dl>


|x1= <code>_usedDLCs = [[getMissionDLCs]];</code>


{{GameCategory|arma3|Scripting Commands}}
|seealso= [[getDLCs]] [[getObjectDLC]] [[getPersonUsedDLCs]] [[getDLCAssetsUsageByName]] [[getDLCAssetsUsage]] [[getAssetDLCInfo]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
}}

Revision as of 15:04, 7 March 2021

Hover & click on the images for description

Description

Description:
Returns list of DLCs that are used in the mission. List is created only from units listed in mission.sqm and does not detect units created by scripts!
Groups:
Mission InformationDLC

Syntax

Syntax:
getMissionDLCs
Return Value:
Array - list of DLCs detected for the mission. Example: ["Orange","Enoch","Expansion","Heli","Contact","Mark","Argo","Jets"]

Examples

Example 1:
_usedDLCs = getMissionDLCs;

Additional Information

See also:
getDLCs getObjectDLC getPersonUsedDLCs 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