getAssetDLCInfo

From Bohemia Interactive Community
Revision as of 19:15, 29 January 2021 by Lou Montana (talk | contribs) (Text replacement - " *\| *PARAMETER[0-9]{1,3} *= * " to " ")
Jump to navigation Jump to search
Hover & click on the images for description

Description

Description:
Description needed
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 ""

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:
  • 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:
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