productVersion: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (see also) |
Killzone Kid (talk | contribs) (additional return values) |
||
Line 7: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Returns the product's friendly name, identifier and version. |= Description | | Returns the product's friendly name, identifier and version. In Arma 3 it also returns branch identifier and whether or not the game was launched using mods.|= Description | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Line 16: | Line 16: | ||
|p2= |= Parameter 2 | |p2= |= Parameter 2 | ||
| [[Array]] - | | [[Array]] | ||
* [[String]] - | * [[String]] - Product Name, | ||
* [[ | * [[String]] - Product Name Short | ||
* [[Number]] - | * [[Number]] - Product Version Number | ||
* [[ | * [[Number]] - Product Build Number | ||
* [[String]] (Arma 3) - Product Branch | |||
* [[Boolean]] (Arma 3) - Product is vanilla or launched using mods | |||
|= Return value | |= Return value | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>[[hint]] [[str]] | |x1= <code>[[hint]] [[str]] [[productVersion]]; // ''would return ["Arma 2 OA", "arma2oa", 162, 95208] on Arma 2 OA 1.62.95208''</code> |= Example 1 | ||
|x2= <code>[[hint]] [[str]] [[productVersion]]; // ["Arma 3","Arma3",137,128764,"Development",false]</code>|= Example 2 | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 11:34, 7 January 2015
Description
- Description:
- Returns the product's friendly name, identifier and version. In Arma 3 it also returns branch identifier and whether or not the game was launched using mods.
- Groups:
- Uncategorised
Syntax
- Syntax:
- productVersion
- Return Value:
- Array
Examples
- Example 1:
hint str productVersion; // would return ["Arma 2 OA", "arma2oa", 162, 95208] on Arma 2 OA 1.62.95208
- Example 2:
hint str productVersion; // ["Arma 3","Arma3",137,128764,"Development",false]
Additional Information
- See also:
- supportInfo
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