Only play fastroping sounds for player

This commit is contained in:
BaerMitUmlaut 2016-06-05 19:39:12 +02:00
parent e779bc0cb2
commit 27c347eec8

View File

@ -38,12 +38,14 @@ if (isNull attachedTo _unit) exitWith {
[_unit, "", 2] call EFUNC(common,doAnimation);
_unit setVectorUp [0, 0, 1];
if (_unit == ACE_player) then {
playSound QGVAR(Thud);
};
[_pfhHandle] call CBA_fnc_removePerFrameHandler;
};
if (diag_tickTime > _timeToPlayRopeSound) then {
if (_unit == ACE_player && {diag_tickTime > _timeToPlayRopeSound}) then {
_arguments set [4, (_timeToPlayRopeSound + 1)];
playSound QGVAR(Rope);
};