productVersion: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| arma2oa | | arma2oa | ||
|1.62 | |1.62 | ||
|gr1= System | |gr1= System | ||
| 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. | ||
| '''productVersion''' | | '''productVersion''' | ||
| [[Array]] | | [[Array]] | ||
Line 20: | Line 20: | ||
* [[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''' | ||
|x1= <code>[[hint]] [[str]] [[productVersion]]; {{cc|would return ["Arma 2 OA", "arma2oa", 162, 95208] on Arma 2 OA 1.62.95208}}</code> | |x1= <code>[[hint]] [[str]] [[productVersion]]; {{cc|would return ["Arma 2 OA", "arma2oa", 162, 95208] on Arma 2 OA 1.62.95208}}</code> | ||
|x2= <code>[[hint]] [[str]] [[productVersion]]; {{cc|["Arma 3","Arma3",137,128764,"Development",false,"Windows"]}}</code> | |x2= <code>[[hint]] [[str]] [[productVersion]]; {{cc|["Arma 3","Arma3",137,128764,"Development",false,"Windows"]}}</code> | ||
|x3= <code>[[format]] ["%1.%2",([[productVersion]][[a_hash_b|#]]2)/100 [[toFixed]] 2,([[productVersion]][[a_hash_b|#]]3)]; {{cc|returns version e.g.: "2.00.146773"}}</code> | |x3= <code>[[format]] ["%1.%2",([[productVersion]][[a_hash_b|#]]2)/100 [[toFixed]] 2,([[productVersion]][[a_hash_b|#]]3)]; {{cc|returns version e.g.: "2.00.146773"}}</code> | ||
| [[supportInfo]], [[requiredVersion]] | | [[supportInfo]], [[requiredVersion]] | ||
}} | }} |
Revision as of 01:12, 18 January 2021
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:
- System
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"]
- Example 3:
format ["%1.%2",(productVersion#2)/100 toFixed 2,(productVersion#3)]; // returns version e.g.: "2.00.146773"
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
Categories:
- Scripting Commands
- Introduced with Arma 2: Operation Arrowhead version 1.62
- Arma 2: Operation Arrowhead: New Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Command Group: System
- Arma 2: Operation Arrowhead: New Scripting Commands List
- Arma 2: Scripting Commands
- Arma 3: Scripting Commands