Fix Injured Sounds Not Playing At Altitudes Above 70 (#8212)

This commit is contained in:
commy2 2021-04-17 22:28:52 +02:00 committed by PabstMirror
parent fdc3ab0784
commit 9d6843fdb3

View File

@ -33,7 +33,7 @@ private _distance = if (_type == "hit") then {
} else {
[10, 15, 20] select _severity;
};
private _targets = allPlayers inAreaArray [getPosWorld _unit, _distance, _distance, 0, false, _distance];
private _targets = allPlayers inAreaArray [ASLToAGL getPosASL _unit, _distance, _distance, 0, false, _distance];
if (_targets isEqualTo []) exitWith {};
// Handle timeout