Arma 3 Scripting

Command in System

productVersion

Also available as Markdown and JSON, or read the original wiki page.

Description

Returns the product's friendly name, identifier, version and build number.

Note

Arma 3: The command has been upgraded to also returns branch identifier, whether or not the game was launched using mods, the platform and the architecture.

Syntax

productVersion

Returns: Array with [name, nameShort, version, buildNumber, buildType, isModded, platform, architecture, steamBranchName]

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 select 2) * 0.01 toFixed 2, productVersion select 3]; // returns version e.g.: "2.00.146773"

Example 4

productVersion params ["_name", "_nameShort", "_version", "_buildNumber", "_buildType", "_isModded", "_platform", "_architecture", "_steamBranchName"];

See also

supportInfo · requiredVersion