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 ") |
BrettMayson (talk | contribs) mNo edit summary |
||
(9 intermediate revisions by one other user not shown) | |||
Line 21: | Line 21: | ||
|s2= [[getAssetDLCInfo]] [class, config] | |s2= [[getAssetDLCInfo]] [class, config] | ||
|p21 | |p21= class: [[String]] - class name of the asset | ||
|r2= [[Array]] | |p22= config: [[Config]] - (Optional, default <sqf inline>configFile >> "CfgVehicles"</sqf>) config in which to search | ||
|r2= [[Array]] in format [isDlc, isOwned, isInstalled, isAvailable, appID, DLCName], where: | |||
* isDlc: [[Boolean]] - the asset belongs to a DLC | * isDlc: [[Boolean]] - the asset belongs to a DLC | ||
* isOwned: [[Boolean]] | * isOwned: [[Boolean]] | ||
Line 32: | Line 32: | ||
* appID: [[String]] - actual steam item ID or "0" for none or "-1" for unknown | * appID: [[String]] - actual steam item ID or "0" for none or "-1" for unknown | ||
* DLCName: [[String]] - actual DLC name or "" | * DLCName: [[String]] - actual DLC name or "" | ||
|x2= < | |x1= <sqf>getAssetDLCInfo player;</sqf> | ||
|x2= <sqf>getAssetDLCInfo "a3\Weapons_F_Enoch\Rifles\MSBS\MSBS65_F";</sqf> | |||
|x3= < | |x3= <sqf>getAssetDLCInfo ["C_Van_01_transport_F"];</sqf> | ||
|x4= < | |x4= <sqf>getAssetDLCInfo ["arifle_AK12_F", configFile >> "CfgWeapons"];</sqf> | ||
|seealso= [[getDLCs]] | |seealso= [[getDLCs]] [[getObjectDLC]] [[getPersonUsedDLCs]] [[getMissionDLCs]] [[getDLCAssetsUsageByName]] [[getDLCAssetsUsage]] | ||
}} | }} |
Latest revision as of 21:04, 28 September 2023
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