getMissionDLCs: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "{{Command|=" to "{{Command|Comments=")
m (Some wiki formatting)
 
(17 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________
 
|arma3 |= Game
|game1= arma3
|1.62|Game Version=
|version1= 1.62
|arg=  |Multiplayer Arguments=
 
|eff=  |Multiplayer Effects=
|gr1= Mission Information
____________________________________________________________________________________________
 
| 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! |DESCRIPTION=
|gr2= DLC
____________________________________________________________________________________________
 
| [[getMissionDLCs]] |SYNTAX=
|descr= Returns list of DLCs that are used in the mission.
|p1=  |PARAMETER1=
{{Feature|important|The list is created from units listed in [[Mission.sqm|mission.sqm]] and does '''not''' detect units later created by scripts.}}
|p2=  |PARAMETER2=
 
|p3=  |PARAMETER3=
|s1= [[getMissionDLCs]]
|p3=  |PARAMETER4=
|p3=  |PARAMETER5=
|p3=  |PARAMETER6=
| [[Array]] - list of DLCs detected for the mission |RETURNVALUE=
|x1= _list = [[getMissionDLCs]] |EXAMPLE1=
| [[getDLCs]] [[getObjectDLC]] [[getPersonUsedDLCs]] |SEEALSO=
}}


<dl class='command_description'>
|r1= [[Array]] - list of DLCs detected for the mission
<!-- BEGIN Note Section -->
<!-- For example:
<dd class='notedate'>Posted on Month Day, Year - Time (UTC)</dd>
<dt class='note'>'''[[User:User Name|User Name]]'''</dt>
<dd class='note'>This is an example note. It is true and verifiable, and contains a little code snippet.
<code>[[if]] ([[_this]] == anExample) [[then]] { hint: Leave it here for others to read; };</code></dd>
-->
<!-- END Note Section -->
</dl>


<h3 style='display:none'>Bottom Section</h3>
|x1= <sqf>_usedDLCs = getMissionDLCs; // returns e.g ["Orange","Enoch","Expansion","Heli","Contact","Mark","Argo","Jets"]</sqf>
<!-- Appropriate categories go here -->


[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
|seealso= [[getDLCs]] [[getObjectDLC]] [[getPersonUsedDLCs]] [[getDLCAssetsUsageByName]] [[getDLCAssetsUsage]] [[getAssetDLCInfo]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
}}
[[Category:Command Group: DLC|{{uc:{{PAGENAME}}}}]]

Latest revision as of 11:53, 27 July 2022

Hover & click on the images for description

Description

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

Syntax

Syntax:
getMissionDLCs
Return Value:
Array - list of DLCs detected for the mission

Examples

Example 1:
_usedDLCs = getMissionDLCs; // returns e.g ["Orange","Enoch","Expansion","Heli","Contact","Mark","Argo","Jets"]

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