Use selectRandomWeighted 1.76 command (#5482)

This commit is contained in:
jonpas 2017-09-08 16:18:07 +02:00 committed by GitHub
parent 170cd8e5de
commit 40d927d3fd
2 changed files with 2 additions and 2 deletions

View File

@ -91,7 +91,7 @@ if (local _vehicle) then {
} forEach _positions;
if (isServer) then {
private _soundName = [QGVAR(Sound_low), 0.1, QGVAR(Sound_mid), 0.25, QGVAR(Sound_high), 0.65] call BIS_fnc_selectRandomWeighted; // TODO: replace with script Command in 1.74
private _soundName = selectRandomWeighted [QGVAR(Sound_low), 0.1, QGVAR(Sound_mid), 0.25, QGVAR(Sound_high), 0.65];
// TODO - Players in the vehicle hear no sound (even after exiting the vehicle)
private _sound = createSoundSource [_soundName, position _vehicle, [], 0];

View File

@ -9,7 +9,7 @@
#define VERSION_AR MAJOR,MINOR,PATCHLVL,BUILD
// MINIMAL required version for the Mod. Components can specify others..
#define REQUIRED_VERSION 1.72
#define REQUIRED_VERSION 1.76
#define REQUIRED_CBA_VERSION {3,3,1}
#ifdef COMPONENT_BEAUTIFIED