mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Use selectRandomWeighted 1.76 command (#5482)
This commit is contained in:
parent
170cd8e5de
commit
40d927d3fd
@ -91,7 +91,7 @@ if (local _vehicle) then {
|
|||||||
} forEach _positions;
|
} forEach _positions;
|
||||||
|
|
||||||
if (isServer) then {
|
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)
|
// TODO - Players in the vehicle hear no sound (even after exiting the vehicle)
|
||||||
private _sound = createSoundSource [_soundName, position _vehicle, [], 0];
|
private _sound = createSoundSource [_soundName, position _vehicle, [], 0];
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
#define VERSION_AR MAJOR,MINOR,PATCHLVL,BUILD
|
#define VERSION_AR MAJOR,MINOR,PATCHLVL,BUILD
|
||||||
|
|
||||||
// MINIMAL required version for the Mod. Components can specify others..
|
// 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}
|
#define REQUIRED_CBA_VERSION {3,3,1}
|
||||||
|
|
||||||
#ifdef COMPONENT_BEAUTIFIED
|
#ifdef COMPONENT_BEAUTIFIED
|
||||||
|
Loading…
Reference in New Issue
Block a user