From Bohemia Interactive Community
Hover & click on the images for description
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:
- isDlc: Boolean - the asset belongs to a DLC
- isOwned: Boolean
- isInstalled: Boolean
- isAvailable: Boolean
- appID: String - actual steam item ID or "0" for none or "-1" for unknown
- DLCName: String - actual DLC name or ""
- Syntax:
- getAssetDLCInfo [class, config]
- Parameters:
- class: String - class name of the asset
- config: Config - (Optional, default cconfigFile >> "CfgVehicles") config in which to search
- Return Value:
- Array in format [isDlc, isOwned, isInstalled, isAvailable, appID, DLCName], where:
- isDlc: Boolean - the asset belongs to a DLC
- isOwned: Boolean
- isInstalled: Boolean
- isAvailable: Boolean
- appID: String - actual steam item ID or "0" for none or "-1" for unknown
- DLCName: String - actual DLC name or ""
Examples
- Example 1:
- Example 2:
CopygetAssetDLCInfo "a3\Weapons_F_Enoch\Rifles\MSBS\MSBS65_F";
- Example 3:
CopygetAssetDLCInfo ["C_Van_01_transport_F"];
- Example 4:
Additional Information
- See also:
- getDLCs getObjectDLC getPersonUsedDLCs getMissionDLCs getDLCAssetsUsageByName getDLCAssetsUsage
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