getAssetDLCInfo: Difference between revisions
BrettMayson (talk | contribs) mNo edit summary |
BrettMayson (talk | contribs) mNo edit summary |
||
| Line 25: | Line 25: | ||
|p22= config: [[Config]] - (Optional, default <sqf inline>configFile >> "CfgVehicles"</sqf>) config in which to search | |p22= config: [[Config]] - (Optional, default <sqf inline>configFile >> "CfgVehicles"</sqf>) config in which to search | ||
|r2= [[Array]] | |r2= [[Array]] with [isDlc, isOwned, isInstalled, isAvailable, appID, DLCName]: | ||
* isDlc: [[Boolean]] - the asset belongs to a DLC | * isDlc: [[Boolean]] - the asset belongs to a DLC | ||
* isOwned: [[Boolean]] | * isOwned: [[Boolean]] | ||
Revision as of 09:38, 1 January 2026
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 with [isDlc, isOwned, isInstalled, isAvailable, appID, DLCName]:
Alternative Syntax
- Syntax:
- getAssetDLCInfo [class, config]
- Parameters:
- class: String - class name of the asset
- config: Config - (Optional, default configFile >> "CfgVehicles") config in which to search
- Return Value:
- Array with [isDlc, isOwned, isInstalled, isAvailable, appID, DLCName]:
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:
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.
Only post proven facts here! Add Note