isDLCAvailable: Difference between revisions

From Bohemia Interactive Community
m (Some SQF code standard)
m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>")
(7 intermediate revisions by the same user not shown)
Line 15: Line 15:
|r1= [[Boolean]]
|r1= [[Boolean]]


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


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


Line 24: Line 24:
|user= Benargee
|user= Benargee
|timestamp= 20141019023900
|timestamp= 20141019023900
|text= appId can be taken from Steam DLC url, e.g Karts url is <tt><nowiki>http://store.</nowiki>steampowered.com/app/'''288520'''/</tt>.
|text= appId can be taken from Steam DLC url, e.g Karts url is {{hl|<nowiki>http://store.</nowiki>steampowered.com/app/'''288520'''/}}.
}}
}}

Revision as of 10:23, 13 May 2022

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