getAssetDLCInfo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (some formatting)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


|Returns DLC information about given object or model|DESCRIPTION=
|Returns DLC information about given object or model.|DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 20: Line 20:
|s2= [[getAssetDLCInfo]] [class, (config)] |SYNTAX2=
|s2= [[getAssetDLCInfo]] [class, (config)] |SYNTAX2=


| p21= [class, (config)]: [[Array]] |PARAMETER21=
|p21= [class, (config)]: [[Array]] |PARAMETER21=


|r2= [[Array]] - [isDlc, isOwned, isInstalled, IsAvailable, appID, DLCName] |RETURNVALUE2=
|r2= [[Array]] - [isDlc, isOwned, isInstalled, IsAvailable, appID, DLCName] |RETURNVALUE2=
____________________________________________________________________________________________
____________________________________________________________________________________________
|x1= <code>[[getAssetDLCInfo]] [[player]];</code>|EXAMPLE1=


|x1= <code>[[getAssetDLCInfo]] [[player]]</code>|EXAMPLE1=  
|x2= <code>[[getAssetDLCInfo]] "a3\Weapons_F_Enoch\Rifles\MSBS\MSBS65_F";</code>|EXAMPLE2=  


|x2= <code>[[getAssetDLCInfo]] "a3\Weapons_F_Enoch\Rifles\MSBS\MSBS65_F"</code>|EXAMPLE2=  
|x3= <code>[[getAssetDLCInfo]] ["C_Van_01_transport_F"];</code>|EXAMPLE3=  


|x3= <code>[[getAssetDLCInfo]] ["C_Van_01_transport_F"]</code>|EXAMPLE3=  
|x4= <code>[[getAssetDLCInfo]] ["arifle_AK12_F", [[configFile]] >> "CfgWeapons"];</code>|EXAMPLE4=  
____________________________________________________________________________________________


|x4= <code>[[getAssetDLCInfo]] ["arifle_AK12_F", [[configFile]] >> "CfgWeapons"]</code>|EXAMPLE4=
____________________________________________________________________________________________


| [[getObjectDLC]] |SEEALSO=
| [[getObjectDLC]] |SEEALSO=
Line 47: Line 47:
<h3 style="display:none">Bottom Section</h3>
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Command Group: DLC|{{uc:{{PAGENAME}}}}]]

Revision as of 13:47, 2 April 2020

-wrong parameter ("arma3dev") defined!-[[:Category:Introduced with arma3dev version 1.99|1.99]]
Hover & click on the images for description

Description

Description:
Returns DLC information about given object or model.
Groups:
Uncategorised

Syntax

Syntax:
getAssetDLCInfo asset
Parameters:
asset: String or Object
Return Value:
Array - [isDlc, isOwned, isInstalled, IsAvailable, appID, DLCName]

Alternative Syntax

Syntax:
getAssetDLCInfo [class, (config)]
Parameters:
[class, (config)]: Array
Return Value:
Array - [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:
getAssetDLCInfo ["arifle_AK12_F", configFile >> "CfgWeapons"];

Additional Information

See also:
See also needed

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

[[Category:Introduced with arma3dev version 1.99]][[ Category: arma3dev: New Scripting Commands | GETASSETDLCINFO]][[ Category: arma3dev: Scripting Commands | GETASSETDLCINFO]]

Notes

Bottom Section