isDLCAvailable: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\| *arma3 * * *\| *([0-2]\.[0-9]{2}) * " to "|game1= arma3 |version1= $1 ") |
Lou Montana (talk | contribs) m (Text replacement - "<sqf>([^↵][^<]*↵[^<]*)<\/sqf>" to "<sqf> $1 </sqf>") |
||
(12 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
|game1= arma3 | |game1= arma3 | ||
|version1= 1.00 | |version1= 1.00 | ||
|gr1= DLC | |gr1= DLC | ||
|descr= Returns true if the DLC is marked as available. | |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= | |s1= [[isDLCAvailable]] appId | ||
|p1= | |p1= appId : [[Number]] | ||
|r1= [[Boolean]] | |r1= [[Boolean]] | ||
|x1= < | |x1= <sqf> | ||
private _karts = 288520; | |||
isDLCAvailable _karts; // returns true | |||
</sqf> | |||
|seealso= [[getDLCs]] | |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'''/}}. | |||
}} | |||
Latest revision as of 19:42, 3 September 2024
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.
- Groups:
- DLC
Syntax
- Syntax:
- isDLCAvailable appId
- Parameters:
- appId : Number
- Return Value:
- Boolean
Examples
- Example 1:
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
- 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 /.