isDLCAvailable: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " \| *(game[0-9]|version[0-9]|gr[0-9]|serverExec|mp|pr|descr|s[0-9]|p[0-9]{1,3}|r[0-9]|x1?[0-9]|seealso) *= +" to " |$1= ")
(Add (C)DLC appId links)
Line 3: Line 3:
|game1= arma3
|game1= arma3
|version1= 1.00
|version1= 1.00
|gr1= DLC |GROUP1=
|gr1= DLC


|descr= Returns true if the DLC is marked as available. (Steam)
|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!}}


|s1= [[isDLCAvailable]] appid
|s1= [[isDLCAvailable]] appId


|p1= appid : [[Number]]
|p1= appid : [[Number]]
Line 13: Line 15:
|r1= [[Boolean]]
|r1= [[Boolean]]


|x1= <code>_Karts = 288520;
|x1= <code>_karts = 288520;
[[isDLCAvailable]] _Karts;//Returns true</code>
[[isDLCAvailable]] _karts; {{cc|returns true}}</code>


|seealso= [[getDLCs]], [[getObjectDLC]], [[getPersonUsedDLCs]], [[getMissionDLCs]]
|seealso= [[getDLCs]], [[getObjectDLC]], [[getPersonUsedDLCs]], [[getMissionDLCs]]
}}
}}


 
{{Note
<dl class="command_description">
|user= Benargee
 
|timestamp= 20141019023900
<dt></dt>
|text= appId can be taken from Steam DLC url, e.g Karts url is <tt><nowiki>http://store.</nowiki>steampowered.com/app/'''288520'''/</tt>.
<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>

Revision as of 00:59, 20 September 2021

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:
_karts = 288520; isDLCAvailable _karts; // returns true

Additional Information

See also:
getDLCsgetObjectDLCgetPersonUsedDLCsgetMissionDLCs

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/.