Replaced _targetUnit for ObjNull

Replaced _targetUnit for objNull.
This commit is contained in:
Glowbal 2015-02-16 15:56:36 +01:00
parent 6540158ce1
commit da19a89be8

View File

@ -112,7 +112,7 @@ if (_activated && local _logic) then {
// If no unit is to close to this position, we will play the sound.
if ({(_newPos distance _x < (_minimalDistance / 2))}count _allUnits == 0) then {
playSound3D [_ambianceSounds select (round(random((count _ambianceSounds)-1))), _targetUnit, false, _newPos, _volume, 1, 1000];
playSound3D [_ambianceSounds select (round(random((count _ambianceSounds)-1))), ObjNull, false, _newPos, _volume, 1, 1000];
_args set [8, time];
};
};