getAssetDLCInfo: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| arma3 | | arma3 | ||
|2.00 | |2.00 | ||
|gr1= DLC | |gr1= DLC | ||
|Returns DLC information about given object or model. | |Returns DLC information about given object or model. | ||
|s1= [[getAssetDLCInfo]] asset | |s1= [[getAssetDLCInfo]] asset | ||
|p1= asset: [[Object]] or [[String]] - object reference or path to the model | |p1= asset: [[Object]] or [[String]] - object reference or path to the model | ||
|r1= [[Array]] - array in format: [isDlc, isOwned, isInstalled, isAvailable, appID, DLCName], where: | |r1= [[Array]] - array in format: [isDlc, isOwned, isInstalled, isAvailable, appID, DLCName], where: | ||
Line 18: | Line 18: | ||
* isAvailable: [[Boolean]] | * isAvailable: [[Boolean]] | ||
* 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 "" | ||
|s2= [[getAssetDLCInfo]] [class, config] | |s2= [[getAssetDLCInfo]] [class, config] | ||
|p21= [class, config]: [[Array]] |PARAMETER21= | |p21= [class, config]: [[Array]] |PARAMETER21= | ||
Line 33: | Line 33: | ||
* isAvailable: [[Boolean]] | * isAvailable: [[Boolean]] | ||
* 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 "" | ||
|x1= <code>[[getAssetDLCInfo]] [[player]];</code> | |x1= <code>[[getAssetDLCInfo]] [[player]];</code> | ||
|x2= <code>[[getAssetDLCInfo]] "a3\Weapons_F_Enoch\Rifles\MSBS\MSBS65_F";</code> | |x2= <code>[[getAssetDLCInfo]] "a3\Weapons_F_Enoch\Rifles\MSBS\MSBS65_F";</code> | ||
|x3= <code>[[getAssetDLCInfo]] ["C_Van_01_transport_F"];</code> | |x3= <code>[[getAssetDLCInfo]] ["C_Van_01_transport_F"];</code> | ||
|x4= <code>[[getAssetDLCInfo]] ["arifle_AK12_F", [[configFile]] >> "CfgWeapons"];</code> | |x4= <code>[[getAssetDLCInfo]] ["arifle_AK12_F", [[configFile]] >> "CfgWeapons"];</code> | ||
|seealso= [[getDLCs]], [[getObjectDLC]], [[getPersonUsedDLCs]], [[getMissionDLCs]], [[getDLCAssetsUsageByName]], [[getDLCAssetsUsage]] | |seealso= [[getDLCs]], [[getObjectDLC]], [[getPersonUsedDLCs]], [[getMissionDLCs]], [[getDLCAssetsUsageByName]], [[getDLCAssetsUsage]] | ||
}} | }} |
Revision as of 00:33, 18 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