Description
Detects which Arma 2 expansions and addons are available. Only works in Arma 2/Arma 2: Operation Arrowhead.
Note
arma2acr is not detected by this function.
Syntax
call BIS_fnc_version
Returns: Array of Numbers - can contain:
- 0: Arma 2
- 1: Arma 2: Operation Arrowhead
- 2: arma2baf
- 4: arma2pmc
Examples
Example 1
private _availableExpansions = call BIS_fnc_version;
Example 2
private _playerHasPMC = 4 in (call BIS_fnc_version);