getAssetDLCInfo: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Some wiki formatting) |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 33: | Line 33: | ||
* DLCName: [[String]] - actual DLC name or "" | * DLCName: [[String]] - actual DLC name or "" | ||
|x1= <sqf>getAssetDLCInfo | |x1= <sqf>getAssetDLCInfo player;</sqf> | ||
|x2= <sqf>getAssetDLCInfo "a3\Weapons_F_Enoch\Rifles\MSBS\MSBS65_F";</sqf> | |x2= <sqf>getAssetDLCInfo "a3\Weapons_F_Enoch\Rifles\MSBS\MSBS65_F";</sqf> |
Revision as of 09:52, 14 June 2022
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: String - class name of the asset
- config: Config - (Optional, default:
configFile >> "CfgVehicles"
) config in which to search - Return Value:
- 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:
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