getAssetDLCInfo: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]3(\|.*)]]" to "{{GameCategory|arma3|Scripting Commands}}") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
| arma3 |Game name= | | arma3 |Game name= | ||
Line 6: | Line 5: | ||
|2.00 |Game version= | |2.00 |Game version= | ||
|gr1= DLC |GROUP1= | |gr1= DLC |GROUP1= | ||
|Returns DLC information about given object or model.|DESCRIPTION= | |Returns DLC information about given object or model.|DESCRIPTION= | ||
|s1= [[getAssetDLCInfo]] asset |SYNTAX= | |s1= [[getAssetDLCInfo]] asset |SYNTAX= | ||
Line 23: | Line 20: | ||
* DLCName: [[String]] - actual DLC name or "" |RETURNVALUE= | * DLCName: [[String]] - actual DLC name or "" |RETURNVALUE= | ||
|s2= [[getAssetDLCInfo]] [class, config] |SYNTAX2= | |s2= [[getAssetDLCInfo]] [class, config] |SYNTAX2= | ||
Line 38: | Line 34: | ||
* 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 "" |RETURNVALUE2= | * DLCName: [[String]] - actual DLC name or "" |RETURNVALUE2= | ||
|x1= <code>[[getAssetDLCInfo]] [[player]];</code>|EXAMPLE1= | |x1= <code>[[getAssetDLCInfo]] [[player]];</code>|EXAMPLE1= | ||
Line 46: | Line 41: | ||
|x4= <code>[[getAssetDLCInfo]] ["arifle_AK12_F", [[configFile]] >> "CfgWeapons"];</code>|EXAMPLE4= | |x4= <code>[[getAssetDLCInfo]] ["arifle_AK12_F", [[configFile]] >> "CfgWeapons"];</code>|EXAMPLE4= | ||
Revision as of 01:21, 17 January 2021
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, 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:
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