isDLCAvailable: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with "{{Command|= Comments ____________________________________________________________________________________________ | arma 3 |= Game name |1.00|= Game version <!-- unkown --> ...")
 
m (Text replacement - "<sqf>([^↵][^<]*↵[^<]*)<\/sqf>" to "<sqf> $1 </sqf>")
 
(52 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma 3 |= Game name
|game1= arma3
|version1= 1.00
|gr1= DLC


|1.00|= Game version <!-- unkown -->
|descr= Returns true if the DLC (CDLC included) is marked as available on Steam.
____________________________________________________________________________________________
Official and Creator DLC appIds can be found on [[:Category:Arma 3: DLCs & Expansions|Arma 3: DLCs & Expansions]] and [[:Category:Arma 3: CDLCs|Arma 3: CDLCs]] pages.
{{Feature|important|This command will return [[true]] if the DLC is owned, even if it is '''not''' installed!}}


| Returns true if the DLC is marked as available. (Steam) |= Description
|s1= [[isDLCAvailable]] appId
____________________________________________________________________________________________


| [[isDLCAvailable]] appid|= Syntax
|p1= appId : [[Number]]


|p1= appid : [[Number]] |=
|r1= [[Boolean]]


|x1= <sqf>
private _karts = 288520;
isDLCAvailable _karts; // returns true
</sqf>


| [[Boolean]] |= RETURNVALUE
|seealso= [[getDLCs]] [[getObjectDLC]] [[getPersonUsedDLCs]] [[getMissionDLCs]]
}}


 
{{Note
|x1= <code> _Karts = 288520;
|user= Benargee
[[isDLCAvailable]] _Karts;//Returns true </code>|= EXAMPLE1
|timestamp= 20141019023900
 
|text= appId can be taken from Steam DLC url, e.g Karts url is {{hl|<nowiki>http://store.</nowiki>steampowered.com/app/'''288520'''/}}.
____________________________________________________________________________________________
 
|  |= SEEALSO
 
|  |= MPBEHAVIOUR
____________________________________________________________________________________________
}}
}}
<h3 style='display:none'>Notes</h3>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style='display:none'>Bottom Section</h3>
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]

Latest revision as of 19:42, 3 September 2024

Hover & click on the images for description

Description

Description:
Returns true if the DLC (CDLC included) is marked as available on Steam. Official and Creator DLC appIds can be found on Arma 3: DLCs & Expansions and Arma 3: CDLCs pages.
This command will return true if the DLC is owned, even if it is not installed!
Groups:
DLC

Syntax

Syntax:
isDLCAvailable appId
Parameters:
appId : Number
Return Value:
Boolean

Examples

Example 1:
private _karts = 288520; isDLCAvailable _karts; // returns true

Additional Information

See also:
getDLCs getObjectDLC getPersonUsedDLCs getMissionDLCs

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
Benargee - c
Posted on Oct 19, 2014 - 02:39 (UTC)
appId can be taken from Steam DLC url, e.g Karts url is steampowered.com/app/288520/.