Group sounds and zombie calls

dayz_zombieSpeak and player_alertZombies are called often together or should be. fnc_alertZombies groups them together and uses the given parameters. This streamlines and corrects the missing or incorrect calls from dayz_zombieSpeak or player_alertZombies.
This commit is contained in:
AirwavesMan
2020-09-12 01:30:45 +02:00
parent a456c948f5
commit 9ad86a84a3
35 changed files with 193 additions and 205 deletions

View File

@@ -32,9 +32,9 @@ if (!isNull _obj) then {
[_lockedClass,objNull] call fn_waitForObject;
if (_lockedClass == "LockboxStorageLocked") then {
[player,"lockboxclose",0,false] call dayz_zombieSpeak;
[player,(getPosATL player),20,"lockboxclose"] spawn fnc_alertZombies;
} else {
[player,"safeclose",0,false] call dayz_zombieSpeak;
[player,(getPosATL player),20,"safeclose"] spawn fnc_alertZombies;
};
_code = [_obj getVariable["CharacterID","0"],dayz_combination] select (_ComboMatch);