{"name":"BIS_fnc_version","operator":null,"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","replaced_by":[],"games":[{"game":"arma2","name":"Arma 2","version":"1.00"},{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma2","name":"Arma 2","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Detects which **Arma 2** expansions and addons are available. Only works in Arma 2/Arma 2: Operation Arrowhead.\n\n> [!NOTE]\n> arma2acr is not detected by this function.","syntaxes":[{"syntax":"call BIS_fnc_version","since":null,"effect":null,"exec":null,"params":[],"returns":{"type":"Array of Numbers","types":["Array","Number"],"description":"can contain: - 0: Arma 2 - 1: Arma 2: Operation Arrowhead - 2: arma2baf - 4: arma2pmc","text":"Array of Numbers - can contain:\n- 0: Arma 2\n- 1: Arma 2: Operation Arrowhead\n- 2: arma2baf\n- 4: arma2pmc"}}],"examples":[{"text":"```sqf\nprivate _availableExpansions = call BIS_fnc_version;\n```","code":["private _availableExpansions = call BIS_fnc_version;"]},{"text":"```sqf\nprivate _playerHasPMC = 4 in (call BIS_fnc_version);\n```","code":["private _playerHasPMC = 4 in (call BIS_fnc_version);"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["productVersion","requiredVersion"],"notes":[],"categories":["Arma 2: Functions","Arma 2: New Functions","Arma 2: Operation Arrowhead: Functions","Arma 3: Functions","Function Group: Diagnostic","Functions","Introduced with Arma 2 version 1.00","Take On Helicopters: Functions"],"docblock":null,"filled_from_docblock":[]}