From b7892bfc68448a523efd1bf8a3f8a4db7f9b816b Mon Sep 17 00:00:00 2001 From: A Man Date: Tue, 3 Dec 2019 23:52:23 +0100 Subject: [PATCH] Add animation to player_sharpen --- SQF/dayz_code/actions/player_sharpen.sqf | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/SQF/dayz_code/actions/player_sharpen.sqf b/SQF/dayz_code/actions/player_sharpen.sqf index debfa9bbc..ceba37e20 100644 --- a/SQF/dayz_code/actions/player_sharpen.sqf +++ b/SQF/dayz_code/actions/player_sharpen.sqf @@ -19,7 +19,6 @@ closeDialog 1; // item is missing or tools are missing if (isNil "_waterUsed") exitWith { - //_displayName = getText (configFile >> "CfgMagazines" >> _use >> "displayName"); localize "str_sharpen_missing_water" call dayz_rollingMessages; dayz_actionInProgress = false; }; @@ -31,6 +30,13 @@ if !("equip_brick" IN magazines player) exitWith { dayz_actionInProgress = false; }; +_finished = ["Medic",1] call fn_loopAction; + +if (!_finished) exitWith { + localize "STR_EPOCH_PLAYER_26" call dayz_rollingMessages; + dayz_actionInProgress = false; +}; + if (player hasWeapon _item) then { _displayName = getText (configFile >> "CfgWeapons" >> _item >> "displayName");