{"name":"BIS_fnc_version","title":"BIS fnc version","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_version","revid":353287,"updated":"2024-03-15T17:03:27Z","groups":["Diagnostic"],"status":"ok","games":{"arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma2 1.00","arma3_since":"0.50","description":"Detects which **Arma 2** expansions and addons are available. Only works in Arma 2/Arma 2: Operation Arrowhead.\n\n> [!NOTE]\n> Arma 2: Army of the Czech Republic is not detected by this function.","syntaxes":[{"syntax":"call BIS_fnc_version","params":[],"returns":{"type":"Array of Numbers","type_expr":"Array<Number>","description":"can contain:\n- 0: Arma 2 - 1: Arma 2: Operation Arrowhead - 2: Arma 2: British Armed Forces - 4: Arma 2: Private Military Company","text":"Array of Numbers - can contain:\n\n- 0: Arma 2\n- 1: Arma 2: Operation Arrowhead\n- 2: Arma 2: British Armed Forces\n- 4: Arma 2: Private Military Company"}}],"examples":[{"code":["private _availableExpansions = call BIS_fnc_version;"]},{"code":["private _playerHasPMC = 4 in (call BIS_fnc_version);"]}],"see_also":["productVersion","requiredVersion"]}