isDLCAvailable: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ |()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}")
mNo edit summary
 
(26 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


| arma3
|game1= arma3
|version1= 1.00
|gr1= DLC


|1.00
|descr= Returns true if the DLC (CDLC included) is marked as available on Steam.
|gr1= DLC |GROUP1= <!-- unkown -->
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)
|s1= [[isDLCAvailable]] appId


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


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


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


|x1= <code> _Karts = 288520;
|seealso= [[getDLCs]] [[getObjectDLC]] [[getPersonUsedDLCs]] [[getMissionDLCs]]
[[isDLCAvailable]] _Karts;//Returns true </code>
}}


|seealso= [[getDLCs]], [[getObjectDLC]], [[getPersonUsedDLCs]], [[getMissionDLCs]]
{{Note
|user= Benargee
|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'''/}}.
}}
}}
{{GameCategory|arma3|Scripting Commands}}
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
<!-- CONTINUE Notes -->
<dl class="command_description">
<dd class="notedate">Posted on October 19, 2014 - 02:39 (UTC)</dd>
<dt class="note">[[User:Benargee|Benargee]]</dt>
<dd class="note">appid can be taken from Steam DLC url.
*Karts url is <nowiki>http://store.</nowiki>steampowered.com/app/'''288520'''/
*Zeus url is <nowiki>http://store.</nowiki>steampowered.com/app/'''275700'''/
*DLC bundle url is  <nowiki>http://store.</nowiki>steampowered.com/app/'''304400'''/</dd>
</dl>
<!-- DISCONTINUE Notes -->

Latest revision as of 07:38, 7 November 2023

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 http://store.steampowered.com/app/288520/.