getMissionDLCs: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(formatting)
m (Some wiki formatting)
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:


|game1= arma3
|game1= arma3
|version1= 1.62
|version1= 1.62


Line 9: Line 8:
|gr2= DLC
|gr2= DLC


|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!
|descr= Returns list of DLCs that are used in the mission.
{{Feature|important|The list is created from units listed in [[Mission.sqm|mission.sqm]] and does '''not''' detect units later created by scripts.}}


|s1= [[getMissionDLCs]]
|s1= [[getMissionDLCs]]


|r1= [[Array]] - list of DLCs detected for the mission. Example: {{ic|["Orange","Enoch","Expansion","Heli","Contact","Mark","Argo","Jets"]}}
|r1= [[Array]] - list of DLCs detected for the mission


|x1= <code>_usedDLCs = [[getMissionDLCs]];</code>
|x1= <sqf>_usedDLCs = getMissionDLCs; // returns e.g ["Orange","Enoch","Expansion","Heli","Contact","Mark","Argo","Jets"]</sqf>


|seealso= [[getDLCs]] [[getObjectDLC]] [[getPersonUsedDLCs]] [[getDLCAssetsUsageByName]] [[getDLCAssetsUsage]] [[getAssetDLCInfo]]
|seealso= [[getDLCs]] [[getObjectDLC]] [[getPersonUsedDLCs]] [[getDLCAssetsUsageByName]] [[getDLCAssetsUsage]] [[getAssetDLCInfo]]
}}
}}

Latest revision as of 12: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