productVersion: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>") |
Lou Montana (talk | contribs) m (Text replacement - "|size=0.75" to "|size= 0.75") |
||
Line 22: | Line 22: | ||
* version: [[Number]] - product version number | * version: [[Number]] - product version number | ||
* build: [[Number]] - product build number | * build: [[Number]] - product build number | ||
* {{GVI|arma3|1.00|size=0.75}} branch: [[String]] - product branch | * {{GVI|arma3|1.00|size= 0.75}} branch: [[String]] - product branch | ||
* {{GVI|arma3|1.00|size=0.75}} isModded: [[Boolean]] - is the product running with mods ([[true]]) or vanilla ([[false]]) | * {{GVI|arma3|1.00|size= 0.75}} isModded: [[Boolean]] - is the product running with mods ([[true]]) or vanilla ([[false]]) | ||
* {{GVI|arma3|1.00|size=0.75}} platform: [[String]] - can be {{hl|Windows}}, {{hl|Linux}} or {{hl|OSX}} | * {{GVI|arma3|1.00|size= 0.75}} platform: [[String]] - can be {{hl|Windows}}, {{hl|Linux}} or {{hl|OSX}} | ||
* {{GVI|arma3|1.68|size=0.75}} architecture: [[String]] - {{hl|x64}} for 64bit or {{hl|x86}} for 32bit | * {{GVI|arma3|1.68|size= 0.75}} architecture: [[String]] - {{hl|x64}} for 64bit or {{hl|x86}} for 32bit | ||
|x1= <sqf>hint str productVersion; // would return ["Arma 2 OA", "arma2oa", 162, 95208] on Arma 2 OA 1.62.95208</sqf> | |x1= <sqf>hint str productVersion; // would return ["Arma 2 OA", "arma2oa", 162, 95208] on Arma 2 OA 1.62.95208</sqf> |
Revision as of 12:09, 21 December 2022
Description
- Description:
- Returns the product's friendly name, identifier, version and build number.
- Groups:
- System
Syntax
- Syntax:
- productVersion
- Return Value:
- Array in format [name, nameShort, version, build, branch, isModded, platform, architecture]:
- name: String - product name
- nameShort: String - product short name
- version: Number - product version number
- build: Number - product build number
- 1.00 branch: String - product branch
- 1.00 isModded: Boolean - is the product running with mods (true) or vanilla (false)
- 1.00 platform: String - can be Windows, Linux or OSX
- 1.68 architecture: String - x64 for 64bit or x86 for 32bit
Examples
- Example 1:
- Example 2:
- Example 3:
Additional Information
- See also:
- supportInfo requiredVersion
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