productVersion: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (template:command argument fix) |
||
Line 7: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Returns the product's friendly name, identifier and version. In Arma 3 it also returns branch identifier, whether or not the game was launched using mods, and the platform.|= | | Returns the product's friendly name, identifier and version. In Arma 3 it also returns branch identifier, whether or not the game was launched using mods, and the platform.|DESCRIPTION= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| '''productVersion''' |= | | '''productVersion''' |SYNTAX= | ||
|p1= |= | |p1= |PARAMETER1= | ||
|p2= |= | |p2= |PARAMETER2= | ||
| [[Array]] | | [[Array]] | ||
Line 25: | Line 25: | ||
* [[String]] (Arma 3) - Platform (''"Windows"'', ''"Linux"'' or ''"OSX"'') | * [[String]] (Arma 3) - Platform (''"Windows"'', ''"Linux"'' or ''"OSX"'') | ||
* [[String]] (Arma 3) - Architecture - '''x64''' for 64bit or '''x86''' for 32bit '''Since version 1.67''' | * [[String]] (Arma 3) - Architecture - '''x64''' for 64bit or '''x86''' for 32bit '''Since version 1.67''' | ||
|= | |RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>[[hint]] [[str]] [[productVersion]]; //''would return ["Arma 2 OA", "arma2oa", 162, 95208] on Arma 2 OA 1.62.95208''</code> |= | |x1= <code>[[hint]] [[str]] [[productVersion]]; //''would return ["Arma 2 OA", "arma2oa", 162, 95208] on Arma 2 OA 1.62.95208''</code> |EXAMPLE1= | ||
|x2= <code>[[hint]] [[str]] [[productVersion]]; //''["Arma 3","Arma3",137,128764,"Development",false,"Windows"]''</code>|= | |x2= <code>[[hint]] [[str]] [[productVersion]]; //''["Arma 3","Arma3",137,128764,"Development",false,"Windows"]''</code>|EXAMPLE2= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[supportInfo]], [[requiredVersion]] |= | | [[supportInfo]], [[requiredVersion]] |SEEALSO= | ||
}} | }} |
Revision as of 14:45, 7 April 2019
Description
- Description:
- Returns the product's friendly name, identifier and version. In Arma 3 it also returns branch identifier, whether or not the game was launched using mods, and the platform.
- Groups:
- Uncategorised
Syntax
- Syntax:
- productVersion
- Return Value:
- Array
- String - Product Name
- String - Product Name Short
- Number - Product Version Number
- Number - Product Build Number
- String (Arma 3) - Product Branch
- Boolean (Arma 3) - Product is launched using mods true or vanilla false
- String (Arma 3) - Platform ("Windows", "Linux" or "OSX")
- String (Arma 3) - Architecture - x64 for 64bit or x86 for 32bit Since version 1.67
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,"Windows"]
Additional Information
- See also:
- supportInforequiredVersion
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