From d853908063398343d6acd6079c2b4d3bc233a0a9 Mon Sep 17 00:00:00 2001 From: HARLAN Date: Mon, 9 Dec 2013 11:27:05 -0500 Subject: [PATCH] #879 remind players to remove lock if they want to delete modular door --- SQF/dayz_code/compile/fn_selfActions.sqf | 1 + 1 file changed, 1 insertion(+) diff --git a/SQF/dayz_code/compile/fn_selfActions.sqf b/SQF/dayz_code/compile/fn_selfActions.sqf index ee3f61113..2d566820a 100644 --- a/SQF/dayz_code/compile/fn_selfActions.sqf +++ b/SQF/dayz_code/compile/fn_selfActions.sqf @@ -214,6 +214,7 @@ if (!isNull cursorTarget and !_inVehicle and !_isPZombie and (player distance cu //Allow owners to delete modulars if(_isModular and (dayz_characterID == _ownerID)) then { if(_hasToolbox and "ItemCrowbar" in _itemsPlayer) then { + if(_cursorTarget in DZE_DoorsLocked) exitwith {cutText ["You must remove the lock to delete this item!", "PLAIN DOWN"]; }; _player_deleteBuild = true; }; };