getAssetDLCInfo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (See also fix)
(see also)
Line 12: Line 12:
|s1= [[getAssetDLCInfo]] asset |SYNTAX=
|s1= [[getAssetDLCInfo]] asset |SYNTAX=


|p1= asset: [[String]] or [[Object]] |PARAMETER1=
|p1= asset: [[Object]] or [[String]] - object reference or path to the model |PARAMETER1=


|r1= [[Array]] - [isDlc, isOwned, isInstalled, IsAvailable, appID, DLCName] |RETURNVALUE=
|r1= [[Array]] - array in format: [isDlc, isOwned, isInstalled, isAvailable, appID, DLCName] where
* isDlc: [[Boolean]] - the asset belongs to a DLC
* isOwned: [[Boolean]]
* isInstalled: [[Boolean]]
* isAvailable: [[Boolean]]
* appID: [[String]] - actual steam item ID or "0" for none or "-1" for unknown
* DLCName: [[String]] - actual DLC name or "" |RETURNVALUE=


____________________________________________________________________________________________
____________________________________________________________________________________________


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


|p21= [class, (config)]: [[Array]] |PARAMETER21=
|p21= [class, config]: [[Array]] |PARAMETER21=
|p22= class: [[String]] - class name of the asset  |PARAMETER22=
|p23= config (Optional): [[Config]] - config to search in, default: <tt>[[configFile]] [[>>]] "CfgVehicles"</tt> |PARAMETER23=


|r2= [[Array]] - [isDlc, isOwned, isInstalled, IsAvailable, appID, DLCName] |RETURNVALUE2=
|r2= [[Array]] - array in format: [isDlc, isOwned, isInstalled, isAvailable, appID, DLCName] where
* isDlc: [[Boolean]] - the asset belongs to a DLC
* isOwned: [[Boolean]]
* isInstalled: [[Boolean]]
* isAvailable: [[Boolean]]
* appID: [[String]] - actual steam item ID or "0" for none or "-1" for unknown
* DLCName: [[String]] - actual DLC name or "" |RETURNVALUE2=
____________________________________________________________________________________________
____________________________________________________________________________________________
|x1= <code>[[getAssetDLCInfo]] [[player]];</code>|EXAMPLE1=  
|x1= <code>[[getAssetDLCInfo]] [[player]];</code>|EXAMPLE1=  
Line 34: Line 48:




|seealso= [[getObjectDLC]] |SEEALSO=
|seealso= [[getDLCs]], [[getObjectDLC]], [[getPersonUsedDLCs]], [[getMissionDLCs]], [[getDLCAssetsUsageByName]], [[getDLCAssetsUsage]] |SEEALSO=


}}
}}

Revision as of 08:11, 3 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: Object or String - object reference or path to the model
Return Value:
Array - array in format: [isDlc, isOwned, isInstalled, isAvailable, appID, DLCName] where
  • isDlc: Boolean - the asset belongs to a DLC
  • isOwned: Boolean
  • isInstalled: Boolean
  • isAvailable: Boolean
  • appID: String - actual steam item ID or "0" for none or "-1" for unknown
  • DLCName: String - actual DLC name or ""

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
  • isDlc: Boolean - the asset belongs to a DLC
  • isOwned: Boolean
  • isInstalled: Boolean
  • isAvailable: Boolean
  • appID: String - actual steam item ID or "0" for none or "-1" for unknown
  • DLCName: String - actual DLC name or ""

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

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

Notes

Bottom Section