getAssetDLCInfo: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\| *arma3 * * *\| *([0-2]\.[0-9]{2}) * " to "|game1= arma3 |version1= $1 ") |
Lou Montana (talk | contribs) m (Text replacement - "<tt>([^= ]+)<\/tt>" to "{{hl|$1}}") |
||
Line 23: | Line 23: | ||
|p21= [class, config]: [[Array]] | |p21= [class, config]: [[Array]] | ||
|p22= class: [[String]] - class name of the asset | |p22= class: [[String]] - class name of the asset | ||
|p23= config (Optional): [[Config]] - config to search in, default: | |p23= config (Optional): [[Config]] - config to search in, default: {{hl|[[configFile]] >> "CfgVehicles"}} | ||
|r2= [[Array]] - array in format: [isDlc, isOwned, isInstalled, isAvailable, appID, DLCName], where: | |r2= [[Array]] - array in format: [isDlc, isOwned, isInstalled, isAvailable, appID, DLCName], where: |
Revision as of 00:15, 16 November 2021
Description
- Description:
- Returns DLC information about given object or model.
- Groups:
- DLC
Syntax
- Syntax:
- getAssetDLCInfo asset
- Parameters:
- asset: Object or String - object reference or path to the model
- Return Value:
- Array - array in format: [isDlc, isOwned, isInstalled, isAvailable, appID, DLCName], where:
Alternative Syntax
- Syntax:
- getAssetDLCInfo [class, config]
- Parameters:
- [class, config]: Array
- class: String - class name of the asset
- config (Optional): Config - config to search in, default: configFile >> "CfgVehicles"
- Return Value:
- Array - array in format: [isDlc, isOwned, isInstalled, isAvailable, appID, DLCName], where:
Examples
- Example 1:
getAssetDLCInfo player;
- Example 2:
getAssetDLCInfo "a3\Weapons_F_Enoch\Rifles\MSBS\MSBS65_F";
- Example 3:
getAssetDLCInfo ["C_Van_01_transport_F"];
- Example 4:
getAssetDLCInfo ["arifle_AK12_F", configFile >> "CfgWeapons"];
Additional Information
- See also:
- getDLCsgetObjectDLCgetPersonUsedDLCsgetMissionDLCsgetDLCAssetsUsageByNamegetDLCAssetsUsage
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