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 GitHub
parent 88e08dc130
commit 72b88cc6dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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